Fixed compiler warning that happens on some platforms (x86 Mac OS X, etc). SDL-1.2
authorRyan C. Gordon
Sun, 21 Aug 2011 21:29:12 -0400
branchSDL-1.2
changeset 5627a80f264754fb
parent 5626 5d3431bad5c7
child 5628 f78f29271dfd
Fixed compiler warning that happens on some platforms (x86 Mac OS X, etc).
src/video/Xext/Xxf86dga/XF86DGA2.c
     1.1 --- a/src/video/Xext/Xxf86dga/XF86DGA2.c	Thu Aug 04 00:46:27 2011 -0400
     1.2 +++ b/src/video/Xext/Xxf86dga/XF86DGA2.c	Sun Aug 21 21:29:12 2011 -0400
     1.3 @@ -960,8 +960,8 @@
     1.4  #else
     1.5  	return False;
     1.6  #endif
     1.7 -    pMap->virtual = mmap(NULL, size, PROT_READ | PROT_WRITE, 
     1.8 -			MAP_FILE | MAP_SHARED, pMap->fd, (off_t)base);
     1.9 +    pMap->virtual = mmap(NULL, size, PROT_READ | PROT_WRITE,
    1.10 +			MAP_FILE | MAP_SHARED, pMap->fd, (off_t)((size_t)base));
    1.11      if (pMap->virtual == (void *)-1)
    1.12  	return False;
    1.13  #endif