Skip to content

Commit

Permalink
Fix MSVC warning in SDL1
Browse files Browse the repository at this point in the history
  • Loading branch information
obligaron authored and AJenbo committed Feb 4, 2024
1 parent 25c1c5b commit 9964ff8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/mpq/mpq_sdl_rwops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<size_t>(offset);
newPosition = offset;
break;
case RW_SEEK_CUR:
newPosition = static_cast<size_t>(data.position + offset);
newPosition = static_cast<OffsetType>(data.position + offset);
break;
case RW_SEEK_END:
newPosition = static_cast<size_t>(data.size + offset);
newPosition = static_cast<OffsetType>(data.size + offset);
break;
default:
return -1;
Expand Down

0 comments on commit 9964ff8

Please sign in to comment.