svn-id: r24642
This commit is contained in:
Johannes Schickel 2006-11-06 22:06:32 +00:00
parent 90e20121b8
commit 68c603631b

View File

@ -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<int>(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<int>(code, dstEnd - dst);
memcpy(dst, data, sz);
dst += sz;
data += sz;