diff --git a/engines/scumm/he/cup_player_he.cpp b/engines/scumm/he/cup_player_he.cpp index 35a40c841fc..f226e7bc176 100644 --- a/engines/scumm/he/cup_player_he.cpp +++ b/engines/scumm/he/cup_player_he.cpp @@ -222,12 +222,12 @@ void CUP_Player::decodeFRAM(uint8 *dst, Common::Rect *r1, const uint8 *data, int dst += code; } else if (code & 2) { // set code = (code >> 2) + 1; - const int sz = MIN((int)code, (int)(dstEnd - dst)); + const int sz = MIN(code, dstEnd - dst); memset(dst, *data++, sz); dst += sz; } else { // copy code = (code >> 2) + 1; - const int sz = MIN((int)code, (int)(dstEnd - dst)); + const int sz = MIN(code, dstEnd - dst); memcpy(dst, data, sz); dst += sz; data += sz;