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 f5b4f003f4
commit 44d762fc92

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