Commit d14434c6 authored by Sam Lantinga's avatar Sam Lantinga

Fixed signed/unsigned mismatch ... hmm, limited to 2 GB reads? Fix in SDL 1.3

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402451
parent 4b89904e
...@@ -187,7 +187,7 @@ static int SDLCALL win32_file_read(SDL_RWops *context, void *ptr, int size, int ...@@ -187,7 +187,7 @@ static int SDLCALL win32_file_read(SDL_RWops *context, void *ptr, int size, int
SDL_Error(SDL_EFREAD); SDL_Error(SDL_EFREAD);
return 0; return 0;
} }
read_ahead = SDL_min(total_need, byte_read); read_ahead = SDL_min(total_need, (int)byte_read);
SDL_memcpy(ptr, context->hidden.win32io.buffer.data, read_ahead); SDL_memcpy(ptr, context->hidden.win32io.buffer.data, read_ahead);
context->hidden.win32io.buffer.size = byte_read; context->hidden.win32io.buffer.size = byte_read;
context->hidden.win32io.buffer.left = byte_read-read_ahead; context->hidden.win32io.buffer.left = byte_read-read_ahead;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment