TINSEL: Fix Signed vs. Unsigned Comparison GCC Compiler Warnings

This commit is contained in:
D G Turner 2021-03-18 23:36:40 +00:00
parent 3370e407f5
commit 27b8a47297
2 changed files with 2 additions and 2 deletions

View File

@ -1105,7 +1105,7 @@ bool BMVPlayer::MaintainBuffer() {
return false;
}
if (stream.read(bigBuffer + nextReadSlot * slotSize, slotSize) != slotSize) {
if ((int)stream.read(bigBuffer + nextReadSlot * slotSize, slotSize) != slotSize) {
bFileEnd = true;
}

View File

@ -116,7 +116,7 @@ int decompressLZSS(Common::SeekableReadStream &input, byte *output) {
}
delete[] data;
if (offset > input.size()) {
if ((int32)offset > input.size()) {
error("Read too far during decompression");
}