mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-05-01 05:08:10 -07:00
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>
23 lines
684 B
Diff
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());
|