diff options
author | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-06-05 17:04:56 +0200 |
---|---|---|
committer | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-06-06 10:12:12 +0200 |
commit | c946ebed5e3f2aae4c5866da1f04fad1ad447f4c (patch) | |
tree | d14c16522d99eebfaff7484c6f5e23a93e035595 /src/test | |
parent | ab20ae807961982c54e92675bee4c4000b990b7b (diff) |
fix util_tests.cpp clang warnings
was introduced with #6121
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/util_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/util_tests.cpp b/src/test/util_tests.cpp index 1779bcdd95..053cf3577d 100644 --- a/src/test/util_tests.cpp +++ b/src/test/util_tests.cpp @@ -349,8 +349,8 @@ BOOST_AUTO_TEST_CASE(test_ParseInt64) BOOST_CHECK(ParseInt64("01234", &n) && n == 1234LL); // no octal BOOST_CHECK(ParseInt64("2147483647", &n) && n == 2147483647LL); BOOST_CHECK(ParseInt64("-2147483648", &n) && n == -2147483648LL); - BOOST_CHECK(ParseInt64("9223372036854775807", &n) && n == 9223372036854775807LL); - BOOST_CHECK(ParseInt64("-9223372036854775808", &n) && n == 9223372036854775808LL); + BOOST_CHECK(ParseInt64("9223372036854775807", &n) && n == (int64_t)9223372036854775807); + BOOST_CHECK(ParseInt64("-9223372036854775808", &n) && n == (int64_t)-9223372036854775807-1); BOOST_CHECK(ParseInt64("-1234", &n) && n == -1234LL); // Invalid values BOOST_CHECK(!ParseInt64("", &n)); |