Use labs for long value

This commit is contained in:
mazmazz 2018-12-16 19:47:02 -05:00
parent 2d2bd59099
commit 6dbe930997

View file

@ -4198,7 +4198,7 @@ static void M_DrawAddons(void)
// This line was originally (m -= i), but GCC very helpfully gives us
// a Wstrict-overflow warning during optimization.
// 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;
i = 0;
}