From 7271c7ff35b74b7fa0bb9dd2db95b99fb9f9db01 Mon Sep 17 00:00:00 2001 From: s_nakamoto Date: Sun, 14 Feb 2010 00:08:27 +0000 Subject: 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. --- bignum.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'bignum.h') 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; -- cgit v1.2.3