Wstrict-overflow adjustment

This commit is contained in:
mazmazz 2018-12-16 19:38:46 -05:00
parent 899120e475
commit 296b678d7e

View file

@ -4203,7 +4203,7 @@ static void M_DrawAddons(void)
// then adjust! // then adjust!
if (i < 0) if (i < 0)
{ {
if ((m -= i) > (ssize_t)sizedirmenu) if ((m += abs(i)) > (ssize_t)sizedirmenu)
m = sizedirmenu; m = sizedirmenu;
i = 0; i = 0;
} }