src/file/SDL_rwops.c
changeset 2179 8b76cc268771
parent 2173 26233707bc94
child 2185 2032348afed1
     1.1 --- a/src/file/SDL_rwops.c	Thu Jul 12 06:31:36 2007 +0000
     1.2 +++ b/src/file/SDL_rwops.c	Thu Jul 12 06:53:20 2007 +0000
     1.3 @@ -191,7 +191,7 @@
     1.4          void *data = (char *) context->hidden.win32io.buffer.data +
     1.5              context->hidden.win32io.buffer.size -
     1.6              context->hidden.win32io.buffer.left;
     1.7 -        read_ahead = SDL_min(total_need, context->hidden.win32io.buffer.left);
     1.8 +        read_ahead = SDL_min(total_need, (size_t)context->hidden.win32io.buffer.left);
     1.9          SDL_memcpy(ptr, data, read_ahead);
    1.10          context->hidden.win32io.buffer.left -= read_ahead;
    1.11