anilmaurya / fast_jsonparser

Fastest Json parser for Ruby, wrapper for simdjson
MIT License
306 stars 10 forks source link

fix windows compatibility #27

Open ahorek opened 1 year ago

ahorek commented 1 year ago

the size of long on Windows platforms is 32 bits (even with 64 bit binaries). So the assumed sizeof(int64_t) != sizeof(long) isn't true. This leads to the corruption of > 32 bit numbers on such platforms due to the overflow.

fixes https://github.com/anilmaurya/fast_jsonparser/issues/17

ad. there's probably a much cleaner way to do it :)