From 296b678d7e039b7bfe328a0b6e2e8eb3d22e999b Mon Sep 17 00:00:00 2001 From: mazmazz Date: Sun, 16 Dec 2018 19:38:46 -0500 Subject: [PATCH] Wstrict-overflow adjustment --- 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 b5161259c..a0c509669 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -4203,7 +4203,7 @@ static void M_DrawAddons(void) // then adjust! if (i < 0) { - if ((m -= i) > (ssize_t)sizedirmenu) + if ((m += abs(i)) > (ssize_t)sizedirmenu) m = sizedirmenu; i = 0; }