Explorar el Código

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

Brian Kirkpatrick hace 2 años
padre
commit
e35730ac54
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 static Sint64 SDLCALL
 windows_file_read(SDL_RWops *context, void *ptr, Sint64 size)
 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 total_read = 0;
     size_t read_ahead;
     size_t read_ahead;
     DWORD byte_read;
     DWORD byte_read;