[Scummvm-git-logs] scummvm master -> 32667eeaa9ae781846e963d18da641af1242ad05
digitall
dgturner at iee.org
Wed Feb 1 02:11:17 CET 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
32667eeaa9 GRAPHICS: Fix GCC Compiler Warnings.
Commit: 32667eeaa9ae781846e963d18da641af1242ad05
https://github.com/scummvm/scummvm/commit/32667eeaa9ae781846e963d18da641af1242ad05
Author: D G Turner (digitall at scummvm.org)
Date: 2017-02-01T01:17:53Z
Commit Message:
GRAPHICS: Fix GCC Compiler Warnings.
Changed paths:
graphics/macgui/mactext.cpp
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp
index c582c4e..8644bb9 100644
--- a/graphics/macgui/mactext.cpp
+++ b/graphics/macgui/mactext.cpp
@@ -243,12 +243,12 @@ void MacText::render(int from, int to) {
for (uint j = 0; j < _textLines[i].chunks.size(); j++)
debugN(4, "[%d] \"%s\"", _textLines[i].chunks[j].fontId, _textLines[i].chunks[j].text.c_str());
- debug(4, "");
+ debug(4, "%s", "");
}
}
int MacText::getLineWidth(int line) {
- if (line >= _textLines.size())
+ if ((uint)line >= _textLines.size())
return 0;
if (_textLines[line].width != -1)
@@ -269,7 +269,7 @@ int MacText::getLineWidth(int line) {
}
int MacText::getLineHeight(int line) {
- if (line >= _textLines.size())
+ if ((uint)line >= _textLines.size())
return 0;
getLineWidth(line); // This calculates height also
More information about the Scummvm-git-logs
mailing list