aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/resource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/resource.cpp')
-rw-r--r--engines/sci/resource.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp
index 6f4248e094..6aaf51b166 100644
--- a/engines/sci/resource.cpp
+++ b/engines/sci/resource.cpp
@@ -309,7 +309,7 @@ bool Resource::loadPatch(Common::SeekableReadStream *file) {
_header = new byte[_headerSize];
if (data() == nullptr || (_headerSize > 0 && _header == nullptr)) {
- error("Can't allocate %lu bytes needed for loading %s", size() + _headerSize, _id.toString().c_str());
+ error("Can't allocate %u bytes needed for loading %s", size() + _headerSize, _id.toString().c_str());
}
uint32 bytesRead;
@@ -321,7 +321,7 @@ bool Resource::loadPatch(Common::SeekableReadStream *file) {
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;
@@ -1028,7 +1028,7 @@ void ResourceManager::printLRU() {
while (it != _LRU.end()) {
res = *it;
- debug("\t%s: %lu bytes", res->_id.toString().c_str(), res->size());
+ debug("\t%s: %u bytes", res->_id.toString().c_str(), res->size());
mem += res->size();
++entries;
++it;