Fixed compiler warning that happens on some platforms (x86 Mac OS X, etc). SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Sun, 21 Aug 2011 21:29:12 -0400
branchSDL-1.2
changeset 5627 a80f264754fb
parent 5626 5d3431bad5c7
child 5628 f78f29271dfd
Fixed compiler warning that happens on some platforms (x86 Mac OS X, etc).
src/video/Xext/Xxf86dga/XF86DGA2.c
--- a/src/video/Xext/Xxf86dga/XF86DGA2.c	Thu Aug 04 00:46:27 2011 -0400
+++ b/src/video/Xext/Xxf86dga/XF86DGA2.c	Sun Aug 21 21:29:12 2011 -0400
@@ -960,8 +960,8 @@
 #else
 	return False;
 #endif
-    pMap->virtual = mmap(NULL, size, PROT_READ | PROT_WRITE, 
-			MAP_FILE | MAP_SHARED, pMap->fd, (off_t)base);
+    pMap->virtual = mmap(NULL, size, PROT_READ | PROT_WRITE,
+			MAP_FILE | MAP_SHARED, pMap->fd, (off_t)((size_t)base));
     if (pMap->virtual == (void *)-1)
 	return False;
 #endif