src/file/SDL_rwops.c
changeset 11416 7e7d8a125d6a
parent 11304 03d0ffb1f3dd
child 11480 e7a79b236dc0
     1.1 --- a/src/file/SDL_rwops.c	Tue Aug 29 09:02:04 2017 -0700
     1.2 +++ b/src/file/SDL_rwops.c	Tue Aug 29 15:52:49 2017 -0400
     1.3 @@ -686,7 +686,7 @@
     1.4  
     1.5      size_total = 0;
     1.6      for (;;) {
     1.7 -        if ((size_total + FILE_CHUNK_SIZE) > size) {
     1.8 +        if ((((Sint64)size_total) + FILE_CHUNK_SIZE) > size) {
     1.9              size = (size_total + FILE_CHUNK_SIZE);
    1.10              newdata = SDL_realloc(data, (size_t)(size + 1));
    1.11              if (!newdata) {