From e35730ac546b9934aab41a7cddbcd4cceb77705d Mon Sep 17 00:00:00 2001 From: Brian Kirkpatrick Date: Wed, 14 Dec 2022 19:23:18 -0800 Subject: [PATCH] fixed const error when compiling for mutated total_need value in SDL_rwops.c --- src/file/SDL_rwops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file/SDL_rwops.c b/src/file/SDL_rwops.c index 4d72c31314..207e30cd34 100644 --- a/src/file/SDL_rwops.c +++ b/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;