diff src/video/x11/SDL_x11modes.c @ 1196:b81f54c3963f

Fixed compile warnings with gcc 4
author Sam Lantinga <slouken@libsdl.org>
date Thu, 08 Dec 2005 14:21:17 +0000
parents 045f186426e1
children 09164d2b8373
line wrap: on
line diff
--- a/src/video/x11/SDL_x11modes.c	Tue Dec 06 14:36:39 2005 +0000
+++ b/src/video/x11/SDL_x11modes.c	Thu Dec 08 14:21:17 2005 +0000
@@ -49,7 +49,7 @@
 Bool SDL_NAME(XF86VidModeGetModeInfo)(Display *dpy, int scr, SDL_NAME(XF86VidModeModeInfo) *info)
 {
     SDL_NAME(XF86VidModeModeLine) *l = (SDL_NAME(XF86VidModeModeLine)*)((char*)info + sizeof info->dotclock);
-    return SDL_NAME(XF86VidModeGetModeLine)(dpy, scr, &info->dotclock, l);
+    return SDL_NAME(XF86VidModeGetModeLine)(dpy, scr, (int*)&info->dotclock, l);
 }
 #endif /* XFREE86_VM */