gentoo/dev-cpp/jsoncons/files/jsoncons-1.4.0-uninit.patch
Alexey Sokolov c984f6ceba
dev-cpp/jsoncons: add 1.4.0, drop 1.3.2
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Part-of: https://github.com/gentoo/gentoo/pull/43821
Closes: https://github.com/gentoo/gentoo/pull/43821
Signed-off-by: Sam James <sam@gentoo.org>
2025-09-17 22:30:28 +01:00

23 lines
684 B
Diff

https://github.com/danielaparker/jsoncons/pull/636
--- a/test/corelib/src/json_as_tests.cpp
+++ b/test/corelib/src/json_as_tests.cpp
@@ -108,7 +108,7 @@ TEST_CASE("json::as<__int128>()")
{
std::string s1 = "-18446744073709551617";
- __int128 n;
+ __int128 n{};
auto result = jsoncons::utility::dec_to_integer(s1.data(),s1.size(), n);
REQUIRE(result.ec == std::errc());
@@ -129,7 +129,7 @@ TEST_CASE("json::as<unsigned __int128>()")
{
std::string s1 = "18446744073709551616";
- unsigned __int128 n;
+ unsigned __int128 n{};
auto result = jsoncons::utility::dec_to_integer(s1.data(),s1.size(), n);
REQUIRE(result.ec == std::errc());