diff options
| author | Gavin Andresen <[email protected]> | 2014-09-30 19:54:08 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2014-09-30 19:54:08 -0400 |
| commit | e5836eb6923b8142003915fc02f2f0b4dc7731c1 (patch) | |
| tree | e8a112db0b3fe12c545bc0fb96c5b01396923443 | |
| parent | Merge pull request #5006 from TheBlueMatt/travis-new-comparisontool (diff) | |
| parent | tests: fix false-positive under win64 (diff) | |
| download | discoin-e5836eb6923b8142003915fc02f2f0b4dc7731c1.tar.xz discoin-e5836eb6923b8142003915fc02f2f0b4dc7731c1.zip | |
Merge pull request #5015 from theuni/win64test
tests: fix false-positive under win64
| -rw-r--r-- | src/test/bignum.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/bignum.h b/src/test/bignum.h index a75f5250f..86980b2af 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) |