aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranotherguest2013-04-04 15:39:54 +0200
committeranotherguest2013-04-04 15:39:54 +0200
commitf9247f0bce0a6a6f658ddd6fe7b034f3855ffa77 (patch)
treea90bd84443ef6734461ff1237a7752f026ff2e83
parentd495a55f8de75eca07ac6e421f0e941bda1d577e (diff)
downloadscummvm-rg350-f9247f0bce0a6a6f658ddd6fe7b034f3855ffa77.tar.gz
scummvm-rg350-f9247f0bce0a6a6f658ddd6fe7b034f3855ffa77.tar.bz2
scummvm-rg350-f9247f0bce0a6a6f658ddd6fe7b034f3855ffa77.zip
WINTERMUTE: Use template with MIN
-rw-r--r--engines/wintermute/base/file/base_package.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/base/file/base_package.cpp b/engines/wintermute/base/file/base_package.cpp
index 4434ed3951..73f767c3ef 100644
--- a/engines/wintermute/base/file/base_package.cpp
+++ b/engines/wintermute/base/file/base_package.cpp
@@ -61,7 +61,7 @@ static bool findPackageSignature(Common::SeekableReadStream *f, uint32 *offset)
uint32 bytesRead = startPos;
while (bytesRead < fileSize - 16) {
- uint32 toRead = MIN((unsigned int)32768, fileSize - bytesRead);
+ uint32 toRead = MIN<unsigned int>((unsigned int)32768, fileSize - bytesRead);
f->seek((int32)startPos, SEEK_SET);
uint32 actuallyRead = f->read(buf, toRead);
if (actuallyRead != toRead) {