Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix deserialization of 64-bit values between -2**62-1 and -2**63

  • Loading branch information...
commit 3a82e24f3d1e00e404f63d3fa3c05e502071d928 1 parent 14a888b
@sorear authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Serialize.cs
View
2  lib/Serialize.cs
@@ -543,7 +543,7 @@ class ThawBuffer {
accum |= (((long)(b & 127)) << shift);
shift += 7;
if ((b & 128) == 0) {
- if ((b & 64) != 0) {
+ if ((b & 64) != 0 && shift < 64) {
accum |= ((-1L) << shift);
}
//Console.WriteLine("Read {0} end {1}", accum, rpointer);
Please sign in to comment.
Something went wrong with that request. Please try again.