Closed GoogleCodeExporter closed 9 years ago
The problem seems to be partially fixed by reading up to 64 bits when reading
an int32
(since that's what the protobuf implementation seems to be doing anyway).
However that
still won't work for large negative numbers (I suspect it's because they
overflow
uint).
Original comment by axelle.z...@gmail.com
on 9 Feb 2010 at 5:17
After a wider bit of investigation, the problem comes from the fact that 32bits
negative integers actually are 10 bytes long, and thus indeed overflow uint.
Reading
them partially and shifting them after that should work, I'm currently working
on a new
implementation of varintreader. Let me know if you're interested in the patch
Original comment by axelle.z...@gmail.com
on 11 Feb 2010 at 6:41
Thanks. This issue is now fixed.
Original comment by pop.atry@gmail.com
on 21 Feb 2010 at 6:39
Original issue reported on code.google.com by
axelle.z...@gmail.com
on 9 Feb 2010 at 4:26