[Scummvm-git-logs] scummvm master -> 7e18d4c28d4598bdd27882ef3918b867e943808e
criezy
criezy at scummvm.org
Sun Apr 21 23:20:02 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
7e18d4c28d COMMON: Fix compiler warning
Commit: 7e18d4c28d4598bdd27882ef3918b867e943808e
https://github.com/scummvm/scummvm/commit/7e18d4c28d4598bdd27882ef3918b867e943808e
Author: jepael (jepael at users.noreply.github.com)
Date: 2019-04-21T22:19:58+01:00
Commit Message:
COMMON: Fix compiler warning
Cast the string character type to native type for comparison.
Changed paths:
common/ustr.cpp
diff --git a/common/ustr.cpp b/common/ustr.cpp
index 7f68f8a..8e41299 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;
More information about the Scummvm-git-logs
mailing list