summaryrefslogtreecommitdiff
path: root/src/heretic/p_inter.c
diff options
context:
space:
mode:
authorSimon Howard2014-03-24 00:18:33 -0400
committerSimon Howard2014-03-24 00:18:33 -0400
commit19466db77813385693cf78b8bc7d97b58dd2b14c (patch)
tree47a31cfb8ac8ae0dadacdfa6906a0abb4f4d5c91 /src/heretic/p_inter.c
parent42faefce1fd03f5d613bf709d3c14925ee560064 (diff)
downloadchocolate-doom-19466db77813385693cf78b8bc7d97b58dd2b14c.tar.gz
chocolate-doom-19466db77813385693cf78b8bc7d97b58dd2b14c.tar.bz2
chocolate-doom-19466db77813385693cf78b8bc7d97b58dd2b14c.zip
Fix various Clang compiler warnings.
Diffstat (limited to 'src/heretic/p_inter.c')
-rw-r--r--src/heretic/p_inter.c2
1 files changed, 1 insertions, 1 deletions
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);
}