Browse Source

fixed const error when compiling for mutated total_need value in SDL_rwops.c

Brian Kirkpatrick 2 years ago
parent
commit
e35730ac54
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/file/SDL_rwops.c

+ 1 - 1
src/file/SDL_rwops.c

@@ -185,7 +185,7 @@ static Sint64 SDLCALL windows_file_seek(SDL_RWops *context, Sint64 offset, int w
 static Sint64 SDLCALL
 windows_file_read(SDL_RWops *context, void *ptr, Sint64 size)
 {
-    const size_t total_need = (size_t) size;
+    size_t total_need = (size_t) size;
     size_t total_read = 0;
     size_t read_ahead;
     DWORD byte_read;