mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-29 00:04:40 +00:00
Merge pull request #5015 from theuni/win64test
tests: fix false-positive under win64
This commit is contained in:
commit
e5836eb692
@ -63,11 +63,11 @@ public:
|
|||||||
|
|
||||||
int getint() const
|
int getint() const
|
||||||
{
|
{
|
||||||
unsigned long n = BN_get_word(this);
|
BN_ULONG n = BN_get_word(this);
|
||||||
if (!BN_is_negative(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
|
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)
|
void setint64(int64_t sn)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user