diff options
author | jepael | 2019-04-21 21:36:55 +0300 |
---|---|---|
committer | Thierry Crozat | 2019-04-21 22:19:58 +0100 |
commit | 7e18d4c28d4598bdd27882ef3918b867e943808e (patch) | |
tree | 06054830b3e97b61d73eae3110b2c98e2bce57a6 /common | |
parent | efcb3a49211f849ad0c9f29522d8ee5ec440dcb6 (diff) | |
download | scummvm-rg350-7e18d4c28d4598bdd27882ef3918b867e943808e.tar.gz scummvm-rg350-7e18d4c28d4598bdd27882ef3918b867e943808e.tar.bz2 scummvm-rg350-7e18d4c28d4598bdd27882ef3918b867e943808e.zip |
COMMON: Fix compiler warning
Cast the string character type to native type for comparison.
Diffstat (limited to 'common')
-rw-r--r-- | common/ustr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/ustr.cpp b/common/ustr.cpp index 7f68f8a37a..8e41299e52 100644 --- a/common/ustr.cpp +++ b/common/ustr.cpp @@ -207,7 +207,7 @@ bool U32String::equals(const String &x) const { return false; for (size_t idx = 0; idx < _size; ++idx) - if (_str[idx] != x[idx]) + if (_str[idx] != (value_type)x[idx]) return false; return true; |