cmd.c, gl_texmgr.c, gl_texmgr.h: killed the rest of the -Wsign-compare warnings.

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@655 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2012-03-31 18:30:09 +00:00
parent 2e78f9c684
commit 574fd31e84
3 changed files with 3 additions and 3 deletions

View file

@ -527,7 +527,7 @@ Cmd_Argv
*/
const char *Cmd_Argv (int arg)
{
if ( (unsigned)arg >= cmd_argc )
if (arg < 0 || arg >= cmd_argc)
return cmd_null_string;
return cmd_argv[arg];
}

View file

@ -388,7 +388,7 @@ TexMgr_FreeTextures
compares each bit in "flags" to the one in glt->flags only if that bit is active in "mask"
================
*/
void TexMgr_FreeTextures (int flags, int mask)
void TexMgr_FreeTextures (unsigned int flags, unsigned int mask)
{
gltexture_t *glt, *next;

View file

@ -80,7 +80,7 @@ float TexMgr_FrameUsage (void);
gltexture_t *TexMgr_FindTexture (model_t *owner, const char *name);
gltexture_t *TexMgr_NewTexture (void);
void TexMgr_FreeTexture (gltexture_t *kill);
void TexMgr_FreeTextures (int flags, int mask);
void TexMgr_FreeTextures (unsigned int flags, unsigned int mask);
void TexMgr_FreeTexturesForOwner (model_t *owner);
void TexMgr_NewGame (void);
void TexMgr_Init (void);