mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 13:50:13 +00:00
cleanup
svn-id: r24642
This commit is contained in:
parent
90e20121b8
commit
68c603631b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user