• Eli Fidler's avatar
    fix undefined double to uint64_t cast · c52cec7e
    Eli Fidler authored
    note that std::numeric_limits<uint64_t>::max() and
    std::numeric_limits<int64_t>::max() aren't exactly representable in a
    double, so we need to be strictly less to be definitely lossless
    
    UBSAN gave during Value.IsLosslessDouble test:
    include/rapidjson/document.h:955:42: runtime error: value 1.84467e+19 is outside the range of representable values of type 'unsigned long'
    c52cec7e
Name
Last commit
Last update
..
CMakeLists.txt Loading commit data...
allocatorstest.cpp Loading commit data...
bigintegertest.cpp Loading commit data...
documenttest.cpp Loading commit data...
dtoatest.cpp Loading commit data...
encodedstreamtest.cpp Loading commit data...
encodingstest.cpp Loading commit data...
filestreamtest.cpp Loading commit data...
fwdtest.cpp Loading commit data...
istreamwrappertest.cpp Loading commit data...
itoatest.cpp Loading commit data...
jsoncheckertest.cpp Loading commit data...
namespacetest.cpp Loading commit data...
ostreamwrappertest.cpp Loading commit data...
pointertest.cpp Loading commit data...
prettywritertest.cpp Loading commit data...
readertest.cpp Loading commit data...
regextest.cpp Loading commit data...
schematest.cpp Loading commit data...
simdtest.cpp Loading commit data...
strfunctest.cpp Loading commit data...
stringbuffertest.cpp Loading commit data...
strtodtest.cpp Loading commit data...
unittest.cpp Loading commit data...
unittest.h Loading commit data...
valuetest.cpp Loading commit data...
writertest.cpp Loading commit data...