From bb27507f402b19dde415fbc93fcbeb7df222f687 Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 29 Jan 2008 12:20:10 +0000 Subject: [PATCH] oops, wrong type... "int" has no ANSI C defined wraparound, "unsigned int" does git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8042 d7cf8633-e32d-0410-b094-e92efae38249 --- vid.h | 2 +- vid_shared.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vid.h b/vid.h index 9323dc08..9ba33da5 100644 --- a/vid.h +++ b/vid.h @@ -148,7 +148,7 @@ void VID_Restart_f(void); void VID_Start(void); -extern int vid_gammaramps_serial; // so other subsystems can poll if gamma parameters have changed; this starts with 0 and gets increased by 1 each time the gamma parameters get changed and VID_BuildGammaTables should be called again +extern unsigned int vid_gammaramps_serial; // so other subsystems can poll if gamma parameters have changed; this starts with 0 and gets increased by 1 each time the gamma parameters get changed and VID_BuildGammaTables should be called again void VID_BuildGammaTables(unsigned short *ramps, int rampsize); // builds the current gamma tables into an array (needs 3*rampsize items) #endif diff --git a/vid_shared.c b/vid_shared.c index 594b0dca..f67bb2d3 100644 --- a/vid_shared.c +++ b/vid_shared.c @@ -825,7 +825,7 @@ static int gamma_forcenextframe = false; static float cachegamma, cachebrightness, cachecontrast, cacheblack[3], cachegrey[3], cachewhite[3], cachecontrastboost; static int cachecolorenable, cachehwgamma; -int vid_gammaramps_serial = 0; // so other subsystems can poll if gamma parameters have changed +unsigned int vid_gammaramps_serial = 0; // so other subsystems can poll if gamma parameters have changed void VID_BuildGammaTables(unsigned short *ramps, int rampsize) { if (cachecolorenable) -- 2.39.2