mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-06 01:31:39 +00:00
MYST3: Fix signed/unsigned mismatch
This commit is contained in:
parent
241aa641d5
commit
aef5ee1e66
@ -275,7 +275,7 @@ Common::String ResourceDescription::getTextData(uint index) const {
|
||||
memset(decrypted, 0, sizeof(decrypted));
|
||||
|
||||
uint8 *out = &decrypted[0];
|
||||
while (cnt / 4 < (_subentry->metadata.size() + 2) && cnt < 89) {
|
||||
while (cnt / 4u < (_subentry->metadata.size() + 2) && cnt < 89) {
|
||||
// XORed text stored in little endian 32 bit words
|
||||
*out++ = (getMiscData(cnt / 4) >> (8 * (3 - (cnt % 4)))) ^ key++;
|
||||
cnt++;
|
||||
|
Loading…
Reference in New Issue
Block a user