Comment #1 on issue 302 by [email protected]: Skip(count) fails when count offset >2^32 count type should be off_t, not int
http://code.google.com/p/protobuf/issues/detail?id=302

Here's a patch that fixes the issue. The patch was written by Kevin C. Dorff and myself and fixes the issue against protobuf 2.4.1. Please incorporate to the head branch. We distribute several tools that are affected by this issue and while we can distribute the patch, it would be easier if the official protobuf release had the fix.

Also note that the Java code generated by protobuf supports takes a long as argument to the corresponding skip method, so the C++ version should really match.

 public long skip(long l) throws java.io.IOException

Attachments:
        protobuf-2.4.1-icb-offset-patch.txt  10.5 KB

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to