diff options
Diffstat (limited to 'src/bignum.cpp')
| -rw-r--r-- | src/bignum.cpp | 2 |
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; |
