From 19466db77813385693cf78b8bc7d97b58dd2b14c Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 24 Mar 2014 00:18:33 -0400 Subject: Fix various Clang compiler warnings. --- src/heretic/p_inter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/heretic/p_inter.c') diff --git a/src/heretic/p_inter.c b/src/heretic/p_inter.c index 0e7b24b8..a68586ee 100644 --- a/src/heretic/p_inter.c +++ b/src/heretic/p_inter.c @@ -164,7 +164,7 @@ boolean P_GiveAmmo(player_t * player, ammotype_t ammo, int count) { return (false); } - if (ammo < 0 || ammo > NUMAMMO) + if ((unsigned int) ammo > NUMAMMO) { I_Error("P_GiveAmmo: bad type %i", ammo); } -- cgit v1.2.3