diff --git a/test/src/unit-ubjson.cpp b/test/src/unit-ubjson.cpp index 88b72fc8..db0a8520 100644 --- a/test/src/unit-ubjson.cpp +++ b/test/src/unit-ubjson.cpp @@ -152,7 +152,7 @@ TEST_CASE("UBJSON") numbers.push_back(-10000000); numbers.push_back(-100000000); numbers.push_back(-1000000000); - numbers.push_back(-2147483648L); + numbers.push_back(-2147483647 - 1); // https://stackoverflow.com/a/29356002/266378 for (auto i : numbers) { CAPTURE(i);