aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/fonts.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2016-02-01 23:20:20 +0100
committerTorbjörn Andersson2016-02-01 23:20:20 +0100
commitd9b4f02d79f1231cbb890537d1d3db5223bf8d29 (patch)
treef5c7850c65180af0abf962059d73d4ed2ff31fed /engines/sherlock/fonts.cpp
parent832845cd250af85849a2c9f3f1fc12fd88545562 (diff)
downloadscummvm-rg350-d9b4f02d79f1231cbb890537d1d3db5223bf8d29.tar.gz
scummvm-rg350-d9b4f02d79f1231cbb890537d1d3db5223bf8d29.tar.bz2
scummvm-rg350-d9b4f02d79f1231cbb890537d1d3db5223bf8d29.zip
SHERLOCK: Silence GCC signed/unsigned warning
Diffstat (limited to 'engines/sherlock/fonts.cpp')
-rw-r--r--engines/sherlock/fonts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/fonts.cpp b/engines/sherlock/fonts.cpp
index 431159ca81..8e36c3908a 100644
--- a/engines/sherlock/fonts.cpp
+++ b/engines/sherlock/fonts.cpp
@@ -130,7 +130,7 @@ void Fonts::setFont(int fontNum) {
// Iterate through the frames to find the widest and tallest font characters
_fontHeight = _widestChar = 0;
- for (uint idx = 0; idx < MIN((int)_charCount, 128 - 32); ++idx) {
+ for (uint idx = 0; idx < MIN<uint>(_charCount, 128 - 32); ++idx) {
_fontHeight = MAX((uint16)_fontHeight, (*_font)[idx]._frame.h);
_widestChar = MAX((uint16)_widestChar, (*_font)[idx]._frame.w);
}