diff options
author | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-02-14 00:08:27 +0000 |
---|---|---|
committer | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-02-14 00:08:27 +0000 |
commit | c4319e678f693d5fbc49bd357ded1c8f951476e9 (patch) | |
tree | a615bf0e4098a3f35baa97fca031efd99c2cfc7d /bignum.h | |
parent | c85dfb148a1e3d75773bc5f6b7cad14363fd666b (diff) | |
download | bitcoin-c4319e678f693d5fbc49bd357ded1c8f951476e9.tar.xz |
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.
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@62 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'bignum.h')
-rw-r--r-- | bignum.h | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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;
|