diff --git a/src/m_menu.c b/src/m_menu.c index 398e16f4..c3977798 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -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; }