blob: 24506cb58f2f779697e9f2d6aa5200599045ea22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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());
|