Commit 226c631
committed
Heapmath mp_add_d: fix for when a and c same pointer
When parameters a and c to mp_add_d are the same pointer, c->sign was
being set to zero/positive and then a->sign was being checked.
Set the c->sign at end as it will always be zero/positive through the
code and the sign of the result isn't otherwise used.1 parent 2c9208b commit 226c631
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4425 | 4425 | | |
4426 | 4426 | | |
4427 | 4427 | | |
4428 | | - | |
4429 | | - | |
4430 | | - | |
4431 | 4428 | | |
4432 | 4429 | | |
4433 | 4430 | | |
| |||
4478 | 4475 | | |
4479 | 4476 | | |
4480 | 4477 | | |
| 4478 | + | |
| 4479 | + | |
| 4480 | + | |
4481 | 4481 | | |
4482 | 4482 | | |
4483 | 4483 | | |
| |||
0 commit comments