Commit 00c3b6d
committed
Use -0.0 as the neutral additive float
-0.0 + 0.0 is 0.0
-0.0 + -0.0 is -0.0
Thus, the float additive-zero is actually -0.0, not its positive cousin.
This change aligns with a recent change to the impl of Sum for floats,
in rust-lang/rust@4908188 and
accordingly we also have to use the latest toolchain for our tests now.1 parent 5fb43ca commit 00c3b6d
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
| 422 | + | |
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
0 commit comments