AD: Fix Signed vs. Unsigned GCC Compiler Warning

This commit is contained in:
D G Turner 2021-03-12 19:51:39 +00:00
parent 0d6e4d647a
commit 37f2751006

View file

@ -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();