kazuho / picojson

a header-file-only, JSON parser serializer in C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

operator== does not honor int64_t

johannesgajdosik opened this issue · comments

When comparing int64 values in operator==, they are first converted to double and then compared.
Thus 2 large integers (>52bits) that are different but similar will compare equal.