aboutsummaryrefslogtreecommitdiff
path: root/bignum.h
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-02-14 00:08:27 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-02-14 00:08:27 +0000
commit7271c7ff35b74b7fa0bb9dd2db95b99fb9f9db01 (patch)
treea615bf0e4098a3f35baa97fca031efd99c2cfc7d /bignum.h
parent19765903dc39a641af614443f5876190fe56931d (diff)
Workaround for bug on wxWidgets 2.9.0 Ubuntu 9.10 64-bit where first character of the hidden columns were displayed so status column had three numbers overprinted. Fixed by adding a leading space to the hidden columns. 64-bit compile with wxWidgets 2.9.0 seems to be fully working normally now.
Diffstat (limited to 'bignum.h')
-rw-r--r--bignum.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/bignum.h b/bignum.h
index e1ab165b2c..61ba3fa03b 100644
--- a/bignum.h
+++ b/bignum.h
@@ -64,12 +64,6 @@ public:
}
}
- explicit CBigNum(const std::string& str)
- {
- BN_init(this);
- SetHex(str);
- }
-
CBigNum& operator=(const CBigNum& b)
{
if (!BN_copy(this, &b))
@@ -407,6 +401,7 @@ public:
CBigNum& operator>>=(unsigned int shift)
{
+ // Note: BN_rshift segfaults on 64-bit ubuntu 9.10 if 2^shift is greater than the number
if (!BN_rshift(this, this, shift))
throw bignum_error("CBigNum:operator>>= : BN_rshift failed");
return *this;
@@ -516,6 +511,7 @@ inline const CBigNum operator<<(const CBigNum& a, unsigned int shift)
inline const CBigNum operator>>(const CBigNum& a, unsigned int shift)
{
CBigNum r;
+ // Note: BN_rshift segfaults on 64-bit ubuntu 9.10 if 2^shift is greater than the number
if (!BN_rshift(&r, &a, shift))
throw bignum_error("CBigNum:operator>> : BN_rshift failed");
return r;