浏览代码

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

Brian Kirkpatrick 2 年之前
父节点
当前提交
e35730ac54
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;