Mercurial > sdl-ios-xcode
diff src/file/SDL_rwops.c @ 1456:84de7511f79f
Fixed a bunch of 64-bit compatibility problems
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 01 Mar 2006 09:43:47 +0000 |
parents | f487bb150acc |
children | 8dfa9a6d69a5 |
line wrap: on
line diff
--- a/src/file/SDL_rwops.c Mon Feb 27 22:14:40 2006 +0000 +++ b/src/file/SDL_rwops.c Wed Mar 01 09:43:47 2006 +0000 @@ -245,8 +245,8 @@ } static int mem_read(SDL_RWops *context, void *ptr, int size, int maxnum) { - int total_bytes; - int mem_available; + size_t total_bytes; + size_t mem_available; total_bytes = (maxnum * size); if ( (maxnum <= 0) || (size <= 0) || ((total_bytes / maxnum) != size) ) {