From 9964ff872184d064005228fc7c5c2e2cabc19c24 Mon Sep 17 00:00:00 2001 From: obligaron Date: Sun, 4 Feb 2024 12:47:51 +0100 Subject: [PATCH] Fix MSVC warning in SDL1 --- Source/mpq/mpq_sdl_rwops.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/mpq/mpq_sdl_rwops.cpp b/Source/mpq/mpq_sdl_rwops.cpp index 142f2f4196f..6396ae179be 100644 --- a/Source/mpq/mpq_sdl_rwops.cpp +++ b/Source/mpq/mpq_sdl_rwops.cpp @@ -59,13 +59,13 @@ static OffsetType MpqFileRwSeek(struct SDL_RWops *context, OffsetType offset, in OffsetType newPosition; switch (whence) { case RW_SEEK_SET: - newPosition = static_cast(offset); + newPosition = offset; break; case RW_SEEK_CUR: - newPosition = static_cast(data.position + offset); + newPosition = static_cast(data.position + offset); break; case RW_SEEK_END: - newPosition = static_cast(data.size + offset); + newPosition = static_cast(data.size + offset); break; default: return -1;