]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a couple signed/unsigned comparison warnings
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 14 Nov 2003 13:46:28 +0000 (13:46 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 14 Nov 2003 13:46:28 +0000 (13:46 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3644 d7cf8633-e32d-0410-b094-e92efae38249

menu.c

diff --git a/menu.c b/menu.c
index e19376854a310808ff640e38d847403e3d8a64ed..73ff178a0720a3314154ef273bd059adedabafb3 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -2147,7 +2147,7 @@ int video_cursor_table[] = {56, 68, 80, 100};
 // note: if modes are added to the beginning of this list, update the
 // video_resolution = x; in M_Menu_Video_f below
 unsigned short video_resolutions[][2] = {{320,240}, {400,300}, {512,384}, {640,480}, {800,600}, {1024,768}, {1152,864}, {1280,960}, {1280,1024}, {1600,1200}, {1792,1344}, {1920,1440}, {2048,1536}, {0,0}};
-#define VID_RES_COUNT ((int)sizeof(video_resolutions) / sizeof(video_resolutions[0]) - 1)
+#define VID_RES_COUNT ((int)(sizeof(video_resolutions) / sizeof(video_resolutions[0])) - 1)
 int video_resolution;
 
 extern int current_vid_fullscreen;