Fixed a bunch of compiler warnings.

--HG--
extra : rebase_source : a2c94cfaf300f4d9f5b7855489ed05c8e23de9fd
This commit is contained in:
Ryan C. Gordon 2017-08-29 15:52:49 -04:00
parent 03c8f2002b
commit fca3874ab4
8 changed files with 43 additions and 42 deletions

View file

@ -686,7 +686,7 @@ SDL_LoadFile_RW(SDL_RWops * src, size_t *datasize, int freesrc)
size_total = 0;
for (;;) {
if ((size_total + FILE_CHUNK_SIZE) > size) {
if ((((Sint64)size_total) + FILE_CHUNK_SIZE) > size) {
size = (size_total + FILE_CHUNK_SIZE);
newdata = SDL_realloc(data, (size_t)(size + 1));
if (!newdata) {