Skip to content

Commit

Permalink
WINTERMUTE: Use template with MIN
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherguest committed Apr 4, 2013
1 parent d495a55 commit f9247f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/wintermute/base/file/base_package.cpp
Expand Up @@ -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) {
Expand Down

0 comments on commit f9247f0

Please sign in to comment.