Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(153)

Issue 851047: code review 851047: Always treat the value column in kSuccessTable as a 64b... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 8 months ago by Stefano Rivera
Modified:
15 years, 6 months ago
Reviewers:
CC:
rsc, re2-dev_googlegroups.com
Visibility:
Public.

Description

Always treat the value column in kSuccessTable as a 64bit integer. Treating it as other sizes of intiger only works on little-endian machines. Fixes issue 11.

Patch Set 1 #

Patch Set 2 : code review 851047: Instead of using a unison for RE2 arg test (a trick whi... #

Total comments: 2

Patch Set 3 : code review 851047: Always treat the value column in kSuccessTable as a 64b... #

Patch Set 4 : code review 851047: Always treat the value column in kSuccessTable as a 64b... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -35 lines) Patch
M re2/testing/re2_arg_test.cc View 1 2 3 3 chunks +27 lines, -35 lines 0 comments Download

Messages

Total messages: 9
Stefano Rivera
Hello rsc (cc: re2-dev@googlegroups.com), I'd like you to review this change.
15 years, 8 months ago (2010-04-16 08:42:59 UTC) #1
rsc1
http://codereview.appspot.com/851047/diff/2001/3001 File re2/testing/re2_arg_test.cc (right): http://codereview.appspot.com/851047/diff/2001/3001#newcode17 re2/testing/re2_arg_test.cc:17: int16 value_int16; Thanks for diagnosing this problem. That's quite ...
15 years, 8 months ago (2010-04-16 19:28:07 UTC) #2
Stefano Rivera
Hello rsc (cc: re2-dev@googlegroups.com), Please take another look.
15 years, 7 months ago (2010-04-19 14:31:15 UTC) #3
Stefano Rivera
http://codereview.appspot.com/851047/diff/2001/3001 File re2/testing/re2_arg_test.cc (right): http://codereview.appspot.com/851047/diff/2001/3001#newcode17 re2/testing/re2_arg_test.cc:17: int16 value_int16; On 2010/04/16 19:28:07, rsc1 wrote: > Instead ...
15 years, 7 months ago (2010-04-19 14:31:44 UTC) #4
rsc
> The uint64 test would then fail. Really? I don't think it would. Casting an ...
15 years, 7 months ago (2010-04-19 14:39:37 UTC) #5
Stefano Rivera
On 2010/04/19 14:39:37, rsc wrote: > Really? I don't think it would. > Casting an ...
15 years, 7 months ago (2010-04-19 15:29:51 UTC) #6
Stefano Rivera
Hello rsc (cc: re2-dev@googlegroups.com), Please take another look.
15 years, 7 months ago (2010-04-19 15:30:55 UTC) #7
rsc_swtch
LGTM thanks.
15 years, 7 months ago (2010-04-23 00:47:52 UTC) #8
rsc
15 years, 7 months ago (2010-04-23 00:49:03 UTC) #9
*** Submitted as http://code.google.com/p/re2/source/detail?r=31fb7640975c ***

re2_arg_test: use a single int64 instead of a union in kSuccessTable.
Union only works on little-endian machines.

Fixes issue 11.

R=rsc
CC=re2-dev
http://codereview.appspot.com/851047

Committer: Russ Cox <rsc@swtch.com>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b