Fix 9.22337e18 is outside the range of representable values of 'long'

This commit is contained in:
Benoit Blanchon
2022-04-05 13:02:24 +02:00
parent 67b6797b6d
commit c65692ab31
5 changed files with 139 additions and 6 deletions

View File

@@ -109,6 +109,7 @@ TEST_CASE("serialize MsgPack value") {
SECTION("float 32") {
checkVariant(1.25, "\xCA\x3F\xA0\x00\x00");
checkVariant(9.22337204e+18f, "\xca\x5f\x00\x00\x00");
}
SECTION("float 64") {