mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 13:16:43 -05:00
Fixed compiler warning that happens on some platforms (x86 Mac OS X, etc).
--HG-- branch : SDL-1.2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user