GROOVIE: Fix -Wformat warnings on 32-bit archs

This commit is contained in:
Donovan Watteau 2023-04-18 14:43:44 +02:00 committed by Eugene Sandulenko
parent bf6e38ca4a
commit 4f7ff00250

View File

@ -545,7 +545,7 @@ bool ROQPlayer::processBlock() {
}
if (endpos != _file->pos() && !_file->eos()) {
warning("Groovie::ROQ: BLOCK %04x Should have ended at %ld, and has ended at %d", blockHeader.type, endpos, (int)_file->pos());
warning("Groovie::ROQ: BLOCK %04x Should have ended at %lld, and has ended at %lld", blockHeader.type, (long long)endpos, (long long)_file->pos());
warning("Ensure you've copied the files correctly according to the wiki.");
_file->seek(MIN(_file->pos(), endpos));
}
@ -699,7 +699,7 @@ bool ROQPlayer::processBlockQuadVector(ROQBlockHeader &blockHeader) {
}
_file->skip(skipBytes);
if (skipBytes != 2) {
warning("Groovie::ROQ: Skipped %ld bytes", skipBytes);
warning("Groovie::ROQ: Skipped %lld bytes", (long long)skipBytes);
}
}
return true;