From 4316169d99eda3542961b421c8c78af5ce2de449 Mon Sep 17 00:00:00 2001 From: James R Date: Sat, 19 Nov 2022 01:37:12 -0800 Subject: [PATCH] Fix -Wtype-limits This subtraction cannot yield a negative value, even if the type were signed, so the max is useless. --- src/k_hud.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/k_hud.c b/src/k_hud.c index a1cb40085..4a5644442 100644 --- a/src/k_hud.c +++ b/src/k_hud.c @@ -1611,7 +1611,7 @@ static void K_DrawKartPositionNum(INT32 num) if (leveltime < (starttime + NUMTRANSMAPS)) { - trans = max(0, (starttime + NUMTRANSMAPS) - leveltime); + trans = (starttime + NUMTRANSMAPS) - leveltime; } if (trans >= NUMTRANSMAPS)