From 4f7ff00250bec970f86d5f19bcd10dc2e8efd238 Mon Sep 17 00:00:00 2001 From: Donovan Watteau Date: Tue, 18 Apr 2023 14:43:44 +0200 Subject: [PATCH] GROOVIE: Fix -Wformat warnings on 32-bit archs --- engines/groovie/video/roq.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/groovie/video/roq.cpp b/engines/groovie/video/roq.cpp index c6b7fe84231..0556cbecd88 100644 --- a/engines/groovie/video/roq.cpp +++ b/engines/groovie/video/roq.cpp @@ -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;