Fixed compiler warning that happens on some platforms (x86 Mac OS X, etc).
--HG-- branch : SDL-1.2
This commit is contained in:
parent
f5b4f003f4
commit
44d762fc92
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue