]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_agl.c
fix more warnings
[xonotic/darkplaces.git] / vid_agl.c
index 83053a36e655bf62716585ae9d3dd65148d51c55..977d8b2fe2ed00507ff76702f8cfac805003c9d7 100644 (file)
--- a/vid_agl.c
+++ b/vid_agl.c
@@ -171,7 +171,7 @@ int VID_GetGamma(unsigned short *ramps, int rampsize)
        CGGammaValue table_green [GAMMA_TABLE_SIZE];
        CGGammaValue table_blue [GAMMA_TABLE_SIZE];
        CGTableCount actualsize = 0;
-       unsigned int i;
+       int i;
 
        // Get the gamma ramps from the system
        if (CGGetDisplayTransferByTable(CGMainDisplayID(), rampsize, table_red, table_green, table_blue, &actualsize) != CGDisplayNoErr)
@@ -179,7 +179,7 @@ int VID_GetGamma(unsigned short *ramps, int rampsize)
                Con_Print("VID_GetGamma: ERROR: CGGetDisplayTransferByTable failed!\n");
                return false;
        }
-       if (actualsize != rampsize)
+       if (actualsize != (unsigned int)rampsize)
        {
                Con_Printf("VID_GetGamma: ERROR: invalid gamma table size (%u != %u)\n", actualsize, rampsize);
                return false;