From a233696212c1707be4c993de8c36228137475af1 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Thu, 30 Mar 2017 14:02:27 -0500 Subject: SCI: Update formatting strings to match updated Span API --- engines/sci/resource_audio.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/sci/resource_audio.cpp') diff --git a/engines/sci/resource_audio.cpp b/engines/sci/resource_audio.cpp index 0125a0e19b..7423890903 100644 --- a/engines/sci/resource_audio.cpp +++ b/engines/sci/resource_audio.cpp @@ -85,7 +85,7 @@ bool Resource::loadFromWaveFile(Common::SeekableReadStream *file) { uint32 bytesRead = file->read(ptr, _size); if (bytesRead != _size) - error("Read %d bytes from %s but expected %lu", bytesRead, _id.toString().c_str(), _size); + error("Read %d bytes from %s but expected %u", bytesRead, _id.toString().c_str(), _size); _status = kResStatusAllocated; return true; @@ -139,12 +139,12 @@ bool Resource::loadFromAudioVolumeSCI1(Common::SeekableReadStream *file) { _data = ptr; if (!ptr) { - error("Can't allocate %lu bytes needed for loading %s", _size, _id.toString().c_str()); + error("Can't allocate %u bytes needed for loading %s", _size, _id.toString().c_str()); } uint32 bytesRead = file->read(ptr, size()); if (bytesRead != size()) - warning("Read %d bytes from %s but expected %lu", bytesRead, _id.toString().c_str(), _size); + warning("Read %d bytes from %s but expected %u", bytesRead, _id.toString().c_str(), _size); _status = kResStatusAllocated; return true; -- cgit v1.2.3