aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bignum.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bignum.cpp b/src/bignum.cpp
index 56215179b8..7cf5e791cb 100644
--- a/src/bignum.cpp
+++ b/src/bignum.cpp
@@ -112,7 +112,7 @@ void bignum_negate(BigNum *dest, BigNum *op) {
dest->kind = op->kind;
if (dest->kind == BigNumKindFloat) {
- dest->data.x_float = -dest->data.x_float;
+ dest->data.x_float = -op->data.x_float;
} else {
dest->data.x_uint = op->data.x_uint;
dest->is_negative = !op->is_negative;