mirror of
https://github.com/yawut/SDL.git
synced 2026-05-05 20:57:28 -05:00
Fixed signed/unsigned mismatch ... hmm, limited to 2 GB reads? Fix in SDL 1.3
--HG-- branch : SDL-1.2
This commit is contained in:
parent
2b7f475ce0
commit
d290a1b7bb
|
|
@ -187,7 +187,7 @@ static int SDLCALL win32_file_read(SDL_RWops *context, void *ptr, int size, int
|
|||
SDL_Error(SDL_EFREAD);
|
||||
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);
|
||||
context->hidden.win32io.buffer.size = byte_read;
|
||||
context->hidden.win32io.buffer.left = byte_read-read_ahead;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user