aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorRicardo M. Correia <rcorreia@wizy.org>2012-05-31 20:31:15 +0200
committerRicardo M. Correia <rcorreia@wizy.org>2012-05-31 20:33:22 +0200
commit10b45b4c2e11994aa2aed966f83d84f83852d1e1 (patch)
treed26054766715d39ad85ea00915c012c2d6a20f60 /src/test
parent78e851f94f67b56e9baa8a62d6266c6bf979ee9e (diff)
Use C++-style numeric limits instead of C-style.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/bignum_tests.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/bignum_tests.cpp b/src/test/bignum_tests.cpp
index 16e4449e94..38c625bba1 100644
--- a/src/test/bignum_tests.cpp
+++ b/src/test/bignum_tests.cpp
@@ -1,5 +1,5 @@
#include <boost/test/unit_test.hpp>
-#include <climits>
+#include <limits>
#include "bignum.h"
#include "util.h"
@@ -87,7 +87,7 @@ BOOST_AUTO_TEST_CASE(bignum_setint64)
BOOST_CHECK(num.ToString() == "-5");
}
{
- n = LLONG_MIN;
+ n = std::numeric_limits<int64>::min();
CBigNum num(n);
BOOST_CHECK(num.ToString() == "-9223372036854775808");
num.setulong(0);
@@ -96,7 +96,7 @@ BOOST_AUTO_TEST_CASE(bignum_setint64)
BOOST_CHECK(num.ToString() == "-9223372036854775808");
}
{
- n = LLONG_MAX;
+ n = std::numeric_limits<int64>::max();
CBigNum num(n);
BOOST_CHECK(num.ToString() == "9223372036854775807");
num.setulong(0);