Closed pawitp closed 5 years ago
Currently, varint decodes to JavaScript integer, causing it to not support true 64-bit integers. Varints should be decoded to JSBI.BigInt instead.
Example protobuf: 20FFFFFFFFFFFFFFFF7F
20FFFFFFFFFFFFFFFF7F
Expected result: varint: 9223372036854775807 Actual result: varint: 9223372036854776000
varint: 9223372036854775807
varint: 9223372036854776000
Currently, varint decodes to JavaScript integer, causing it to not support true 64-bit integers. Varints should be decoded to JSBI.BigInt instead.
Example protobuf:
20FFFFFFFFFFFFFFFF7F
Expected result:
varint: 9223372036854775807
Actual result:varint: 9223372036854776000