]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_textures.c
fix signed vs. unsigned comparison warning in GL_TextureMode_f
[xonotic/darkplaces.git] / 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)