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:
Sam Lantinga 2007-07-10 04:31:31 +00:00
parent 2b7f475ce0
commit d290a1b7bb

View File

@ -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;