diff --git a/src/saveload/oldloader.cpp b/src/saveload/oldloader.cpp index 2411a675e4..1d17cb55cc 100644 --- a/src/saveload/oldloader.cpp +++ b/src/saveload/oldloader.cpp @@ -222,7 +222,7 @@ static bool VerifyOldNameChecksum(char *title, uint len) static inline bool CheckOldSavegameType(FILE *f, char *temp, const char *last, uint len) { - assert(last - temp + 1 >= len); + assert(last - temp + 1 >= (int)len); fseek(f, 0, SEEK_SET); if (fread(temp, 1, len, f) != len) {