summaryrefslogtreecommitdiff
path: root/dev-cpp/jsoncons/files/jsoncons-1.4.0-uninit.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp/jsoncons/files/jsoncons-1.4.0-uninit.patch')
-rw-r--r--dev-cpp/jsoncons/files/jsoncons-1.4.0-uninit.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-cpp/jsoncons/files/jsoncons-1.4.0-uninit.patch b/dev-cpp/jsoncons/files/jsoncons-1.4.0-uninit.patch
new file mode 100644
index 000000000000..24506cb58f2f
--- /dev/null
+++ b/dev-cpp/jsoncons/files/jsoncons-1.4.0-uninit.patch
@@ -0,0 +1,22 @@
+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());