| author | |
| committer | |
| log | 2e092e08f4fefa3fcd05484a755db5f5eef8e9cd |
| tree | 2ce0b959b66f4a7475531615c00c6fef0a2a27b1 |
| parent | 675de74412e6006ee270fdd2a3b3e20727328af0 |
2 files changed, 3 insertions(+), 3 deletions(-)
src/bignum.cpp+1-1| ... | ... | @@ -112,7 +112,7 @@ void bignum_negate(BigNum *dest, BigNum *op) { |
| 112 | 112 | dest->kind = op->kind; |
| 113 | 113 | |
| 114 | 114 | if (dest->kind == BigNumKindFloat) { |
| 115 | dest->data.x_float = -dest->data.x_float; | |
| 115 | dest->data.x_float = -op->data.x_float; | |
| 116 | 116 | } else { |
| 117 | 117 | dest->data.x_uint = op->data.x_uint; |
| 118 | 118 | dest->is_negative = !op->is_negative; |
test/run_tests.cpp+2-2| ... | ... | @@ -1497,10 +1497,10 @@ export fn main(argc: c_int, argv: &&u8) -> c_int { |
| 1497 | 1497 | const x: f64 = small; |
| 1498 | 1498 | const y = i32(x); |
| 1499 | 1499 | const z = f64(y); |
| 1500 | printf(c"%.2f\n%d\n%.2f\n", x, y, z); | |
| 1500 | printf(c"%.2f\n%d\n%.2f\n%.2f\n", x, y, z, f64(-0.4)); | |
| 1501 | 1501 | return 0; |
| 1502 | 1502 | } |
| 1503 | )SOURCE", "3.25\n3\n3.00\n"); | |
| 1503 | )SOURCE", "3.25\n3\n3.00\n-0.40\n"); | |
| 1504 | 1504 | } |
| 1505 | 1505 | |
| 1506 | 1506 |