mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-28 21:31:04 +00:00
Use labs for long value
This commit is contained in:
parent
2d2bd59099
commit
6dbe930997
1 changed files with 1 additions and 1 deletions
|
@ -4198,7 +4198,7 @@ static void M_DrawAddons(void)
|
||||||
// This line was originally (m -= i), but GCC very helpfully gives us
|
// This line was originally (m -= i), but GCC very helpfully gives us
|
||||||
// a Wstrict-overflow warning during optimization.
|
// a Wstrict-overflow warning during optimization.
|
||||||
// i will always be negative here, so let's just add what would have been a double negative!
|
// i will always be negative here, so let's just add what would have been a double negative!
|
||||||
if ((m += abs(i)) > (ssize_t)sizedirmenu)
|
if ((m += labs(i)) > (ssize_t)sizedirmenu)
|
||||||
m = sizedirmenu;
|
m = sizedirmenu;
|
||||||
i = 0;
|
i = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue