Skip to content

Commit

Permalink
Fixed compiler warning that happens on some platforms (x86 Mac OS X, …
Browse files Browse the repository at this point in the history
…etc).
  • Loading branch information
icculus committed Aug 22, 2011
1 parent 35f3b0d commit 1c072ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/Xext/Xxf86dga/XF86DGA2.c
Expand Up @@ -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
Expand Down

0 comments on commit 1c072ec

Please sign in to comment.