mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +11:00
Put brackets around nine / forty to ensure that we don't divide where we don't have to
This commit is contained in:
parent
aa39b2b6ad
commit
3357a4b69d
|
@ -263,7 +263,7 @@ impl<I: FixedWidthSignedInteger, const N: usize> Num<I, N> {
|
|||
|
||||
x -= one / four + (x + one / four).floor();
|
||||
x *= (x.abs() - one / two) * sixteen;
|
||||
x += x * (x.abs() - one) * nine / forty;
|
||||
x += x * (x.abs() - one) * (nine / forty);
|
||||
x
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue