ssbc / bipf

Binary json codec optimized for in-place access
MIT License
48 stars 9 forks source link

fix the int32 range check while encoding #27

Closed staltz closed 2 years ago

staltz commented 2 years ago

1st :x: 2nd :heavy_check_mark:

Full context here: https://github.com/ssb-ngi-pointer/ssb-db2/issues/300

According to Wikipedia the signed 32-bit integer range is -21474836482147483647.