From: havoc Date: Fri, 14 Nov 2003 13:46:28 +0000 (+0000) Subject: fix a couple signed/unsigned comparison warnings X-Git-Tag: xonotic-v0.1.0preview~6268 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=1ded652d4ef15c4b64a1d82e01ed82c6e568d35b;p=xonotic%2Fdarkplaces.git fix a couple signed/unsigned comparison warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3644 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/menu.c b/menu.c index e1937685..73ff178a 100644 --- 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;