Skip to content
Permalink
Browse files

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

… SDL 1.3
  • Loading branch information
slouken committed Jul 10, 2007
1 parent 2d3f920 commit bd3de06b211cd6e77e62380f75c66c628fe93017
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/file/SDL_rwops.c
@@ -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;

0 comments on commit bd3de06

Please sign in to comment.