Fixed a bunch of 64-bit compatibility problems
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401460
This commit is contained in:
parent
e539f5ab85
commit
a9ee23bb9f
18 changed files with 117 additions and 48 deletions
|
@ -245,8 +245,8 @@ static int mem_seek(SDL_RWops *context, int offset, int whence)
|
|||
}
|
||||
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) ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue