Skip to content

Commit 1b0cf3d

Browse files
WarrowsFuzzbawls
authored andcommitted
[Crypto] Bignum getcompact return correct result
1 parent 22b12f8 commit 1b0cf3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libzerocoin/bignum.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ class CBigNum
360360
{
361361
CBigNum cbn;
362362
BN_rshift(cbn.bn, bn, 8*(nSize-3));
363-
nCompact = BN_get_word(bn);
363+
nCompact = BN_get_word(cbn.bn);
364364
}
365365
// The 0x00800000 bit denotes the sign.
366366
// Thus, if it is already set, divide the mantissa by 256 and increase the exponent.

0 commit comments

Comments
 (0)