From 6dbe93099751b7e548568b4f1f6e3f4c928e56ab Mon Sep 17 00:00:00 2001 From: mazmazz Date: Sun, 16 Dec 2018 19:47:02 -0500 Subject: [PATCH] Use labs for long value --- src/m_menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/m_menu.c b/src/m_menu.c index 398e16f44..c3977798a 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; }