diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-06-06 11:31:21 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-06-06 11:31:55 +0200 |
| commit | 55294a9fb673ab0a7c99b9c18279fe12a5a07890 (patch) | |
| tree | a4010fdb2a457ab00bb8abbdcbe698af9aaf49f8 /src/test/util_tests.cpp | |
| parent | Merge pull request #6232 (diff) | |
| parent | fix util_tests.cpp clang warnings (diff) | |
| download | discoin-55294a9fb673ab0a7c99b9c18279fe12a5a07890.tar.xz discoin-55294a9fb673ab0a7c99b9c18279fe12a5a07890.zip | |
Merge pull request #6241
c946ebe fix util_tests.cpp clang warnings (Jonas Schnelli)
Diffstat (limited to 'src/test/util_tests.cpp')
| -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 1779bcdd9..053cf3577 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)); |