From 15368629f4f2f207e22af38b6fa29fdcbbe50982 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 15 Apr 2006 08:14:55 +0000 Subject: [PATCH] fix more warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6284 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_agl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vid_agl.c b/vid_agl.c index 83053a36..977d8b2f 100644 --- 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; -- 2.39.2