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

Issue 2832: Fixes for 64-bit (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
17 years, 10 months ago by jleader
Modified:
16 years, 11 months ago
Reviewers:
dangabrad
Base URL:
http://protobuf-perl.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Unit tests fail in 64-bit Perl. Here's a patch to get the unit tests working in 64-bit Perl. It includes various fixes to Encode.pm and Decode.pm, and I moved the BI() function (for portably initializing big integers in 64 or 32 bit Perl) from the test library (perl/t/lib/Test/Protobuf.pm) to Protobuf::Types. I use BI() to initialize 64-bit default values in the generated code, which fixes a TODO item. In theory one could argue that BI() should also be used for enum values, or even field numbers (though the latter is really silly!). Note that I've tested this in both 32-bit and 64-bit environments, but only little-endian.

Patch Set 1 #

Patch Set 2 : Revised patches to fix style issues in Decoder.pm, Encoder.pm, and Types.pm #

Patch Set 3 : Replaces patch set 2, with Brad's suggested changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -23 lines) Patch
perl/lib/Protobuf/Decoder.pm View 1 2 4 chunks +43 lines, -14 lines 0 comments Download
perl/lib/Protobuf/Encoder.pm View 1 2 3 chunks +20 lines, -8 lines 0 comments Download
perl/lib/Protobuf/Types.pm View 1 2 2 chunks +18 lines, -1 line 0 comments Download

Messages

Total messages: 9
jleader
Issue created.
17 years, 10 months ago (2008-08-08 01:03:28 UTC) #1
jleader
Revised patches to fix style issues in Decoder.pm, Encoder.pm, and Types.pm
17 years, 10 months ago (2008-08-08 18:07:16 UTC) #2
GvR
Excuse me for butting in, but I noticed that this issue is generating errors when ...
17 years, 10 months ago (2008-08-08 21:47:23 UTC) #3
jleader
Thanks, I've fixed the SVN Base. Should the entry in the Repositories be changed as ...
17 years, 10 months ago (2008-08-11 17:08:24 UTC) #4
GvR
On 2008/08/11 17:08:24, jleader wrote: > Thanks, I've fixed the SVN Base. Should the entry ...
17 years, 10 months ago (2008-08-11 17:19:49 UTC) #5
bradfitz2
http://codereview.appspot.com/2832/diff/15/23 File perl/lib/Protobuf/Decoder.pm (right): http://codereview.appspot.com/2832/diff/15/23#newcode36 Line 36: else { } else { http://codereview.appspot.com/2832/diff/15/23#newcode62 Line 62: ...
17 years, 10 months ago (2008-08-14 17:08:58 UTC) #6
GvR
(removing myself from the reviewers list)
17 years, 10 months ago (2008-08-14 17:26:16 UTC) #7
jleader
http://codereview.appspot.com/2832/diff/15/23 File perl/lib/Protobuf/Decoder.pm (right): http://codereview.appspot.com/2832/diff/15/23#newcode36 Line 36: else { On 2008/08/14 17:08:58, bradfitz2 wrote: > ...
17 years, 10 months ago (2008-08-14 20:04:21 UTC) #8
jleader
17 years, 10 months ago (2008-08-14 20:05:39 UTC) #9
Replaces patch set 2, with Brad's suggested changes
Sign in to reply to this message.

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