TOON: Fix potential undefined operation warning

svn-id: r53131
This commit is contained in:
Sylvain Dupont 2010-10-10 21:19:40 +00:00
parent aa89bbbcbd
commit 0c6c03bfd6

View File

@ -499,8 +499,10 @@ int32 RncDecoder::unpackM2(const void *input, void *output) {
ofs_lo = *_srcPtr++;
ofs = (ofs_hi << 8) | ofs_lo;
while (len--)
*_dstPtr++ = *(byte *)(_dstPtr - ofs - 1);
while (len--) {
*_dstPtr = *(byte *)(_dstPtr - ofs - 1);
_dstPtr++;
}
}