DescriptionUnit 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 #
MessagesTotal messages: 9
|
|||||||||||||||||||||||||||||||||||||