aboutsummaryrefslogtreecommitdiff
path: root/src/test/bignum.h
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2014-09-30 16:29:01 -0400
committerCory Fields <cory-nospam-@coryfields.com>2014-09-30 18:16:14 -0400
commit63c17613ab808208c8a760fc750e0429c8e53a39 (patch)
treea45850c1d7ddac7c0d8d49f2c04ea34ecffe73ae /src/test/bignum.h
parent4b2b78b9f2bd339cc4505996258e00c186e91792 (diff)
tests: fix false-positive under win64
BN_ULONG isn't necessarily an unsigned long, as is the case on win64.
Diffstat (limited to 'src/test/bignum.h')
-rw-r--r--src/test/bignum.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/bignum.h b/src/test/bignum.h
index a75f5250fa..86980b2af6 100644
--- a/src/test/bignum.h
+++ b/src/test/bignum.h
@@ -63,11 +63,11 @@ public:
int getint() const
{
- unsigned long n = BN_get_word(this);
+ BN_ULONG n = BN_get_word(this);
if (!BN_is_negative(this))
- return (n > (unsigned long)std::numeric_limits<int>::max() ? std::numeric_limits<int>::max() : n);
+ return (n > (BN_ULONG)std::numeric_limits<int>::max() ? std::numeric_limits<int>::max() : n);
else
- return (n > (unsigned long)std::numeric_limits<int>::max() ? std::numeric_limits<int>::min() : -(int)n);
+ return (n > (BN_ULONG)std::numeric_limits<int>::max() ? std::numeric_limits<int>::min() : -(int)n);
}
void setint64(int64_t sn)