AD: Fix Signed vs. Unsigned GCC Compiler Warning
This commit is contained in:
parent
0d6e4d647a
commit
37f2751006
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ static Common::String sanitizeName(const char *name, int maxLen) {
|
||||||
// Skipping short words and "the"
|
// Skipping short words and "the"
|
||||||
if ((word.size() > 2 && !word.equals("the")) || (!word.empty() && Common::isDigit(word[0]))) {
|
if ((word.size() > 2 && !word.equals("the")) || (!word.empty() && Common::isDigit(word[0]))) {
|
||||||
// Adding first word, or when word fits
|
// Adding first word, or when word fits
|
||||||
if (res.empty() || word.size() < maxLen)
|
if (res.empty() || (int)word.size() < maxLen)
|
||||||
res += word;
|
res += word;
|
||||||
|
|
||||||
maxLen -= word.size();
|
maxLen -= word.size();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue