GRAPHICS: MACGUI: Fix GCC Compiler Warnings.
This commit is contained in:
parent
a851c3b185
commit
81a236ee8f
2 changed files with 5 additions and 5 deletions
|
@ -508,11 +508,11 @@ Common::String MacText::getTextChunk(int startRow, int startCol, int endRow, int
|
|||
if (formatted)
|
||||
res += _textLines[i].chunks[chunk].toString();
|
||||
|
||||
if (endCol >= _textLines[i].chunks[chunk].text.size())
|
||||
if (endCol >= (int) _textLines[i].chunks[chunk].text.size())
|
||||
res += _textLines[i].chunks[chunk].text;
|
||||
else
|
||||
res += Common::String(_textLines[i].chunks[chunk].text.c_str(), endCol);
|
||||
} else if (_textLines[i].chunks[chunk].text.size() > startCol) {
|
||||
} else if ((int) _textLines[i].chunks[chunk].text.size() > startCol) {
|
||||
if (formatted)
|
||||
res += _textLines[i].chunks[chunk].toString();
|
||||
|
||||
|
@ -532,7 +532,7 @@ Common::String MacText::getTextChunk(int startRow, int startCol, int endRow, int
|
|||
res += _textLines[i].chunks[chunk].toString();
|
||||
|
||||
res += _textLines[i].chunks[chunk].text;
|
||||
} else if (_textLines[i].chunks[chunk].text.size() > startCol) {
|
||||
} else if ((int) _textLines[i].chunks[chunk].text.size() > startCol) {
|
||||
if (formatted)
|
||||
res += _textLines[i].chunks[chunk].toString();
|
||||
|
||||
|
@ -546,7 +546,7 @@ Common::String MacText::getTextChunk(int startRow, int startCol, int endRow, int
|
|||
if (formatted)
|
||||
res += _textLines[i].chunks[chunk].toString();
|
||||
|
||||
if (endCol >= _textLines[i].chunks[chunk].text.size())
|
||||
if (endCol >= (int) _textLines[i].chunks[chunk].text.size())
|
||||
res += _textLines[i].chunks[chunk].text;
|
||||
else
|
||||
res += Common::String(_textLines[i].chunks[chunk].text.c_str(), endCol);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue