]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix signed vs. unsigned comparison warning in GL_TextureMode_f
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 25 Feb 2010 06:31:44 +0000 (06:31 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 25 Feb 2010 06:31:44 +0000 (06:31 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9995 d7cf8633-e32d-0410-b094-e92efae38249

gl_textures.c

index 9fe4c4782ad395971130999084bf4399f8a2c98c..b4ae602c1ed2268b240dca335175c4b56117ac40 100644 (file)
@@ -338,7 +338,7 @@ static void GL_TextureMode_f (void)
                return;
        }
 
-       for (i = 0;i < sizeof(modes)/sizeof(*modes);i++)
+       for (i = 0;i < (int)(sizeof(modes)/sizeof(*modes));i++)
                if (!strcasecmp (modes[i].name, Cmd_Argv(1) ) )
                        break;
        if (i == 6)