Fixed compiler warning that happens on some platforms (x86 Mac OS X, etc).

--HG--
branch : SDL-1.2
This commit is contained in:
Ryan C. Gordon
2011-08-21 21:29:12 -04:00
parent a360581a35
commit 9b633e09e5

View File

@@ -960,8 +960,8 @@ DGAMapPhysical(
#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