Skip to content

Commit

Permalink
Fixed signed/unsigned mismatch ... hmm, limited to 2 GB reads? Fix in…
Browse files Browse the repository at this point in the history
… SDL 1.3
  • Loading branch information
slouken committed Jul 10, 2007
1 parent 2d3f920 commit bd3de06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file/SDL_rwops.c
Expand Up @@ -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;
Expand Down

0 comments on commit bd3de06

Please sign in to comment.