mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 11:45:21 +00:00
NETWORKING: Fix compiler warning about always false comparison
warning: comparison is always false due to limited range of data type [-Wtype-limits] s is Common::String. s[i] is thus a "char". If char is signed 8bit then the comparison will indeed always be false.
This commit is contained in:
parent
a95f18769d
commit
ad046b1589
@ -56,7 +56,7 @@ Common::String encodeHtmlEntities(Common::String s) {
|
||||
result += ">";
|
||||
else if (s[i] == '&')
|
||||
result += "&";
|
||||
else if (s[i] > (byte)0x7F)
|
||||
else if ((byte)s[i] > (byte)0x7F)
|
||||
result += Common::String::format("&#%d;", (int)s[i]);
|
||||
else result += s[i];
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user