diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-31 17:01:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-31 17:01:38 +0300 |
commit | 5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5 (patch) | |
tree | aeafccf4632262393b23e52afc9facc5ec9f1b3f /src/utils | |
parent | 84f2cad3897d0dacb60cfef4e1860ffb8ec268e1 (diff) | |
download | manaplus-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.tar.gz manaplus-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.tar.bz2 manaplus-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.tar.xz manaplus-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.zip |
Fix sign on some vars.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/stringutils.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index a5435f3f9..af4cafd35 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -573,9 +573,12 @@ std::string stringToHexPath(const std::string &str) if (str.empty()) return ""; - std::string hex = strprintf("%%%2x/", static_cast<int>(str[0])); - for (unsigned f = 1, sz = static_cast<unsigned>(str.size()); f < sz; f ++) - hex.append(strprintf("%%%2x", static_cast<int>(str[f]))); + std::string hex = strprintf("%%%2x/", static_cast<unsigned int>(str[0])); + for (unsigned f = 1, sz = static_cast<unsigned int>(str.size()); + f < sz; f ++) + { + hex.append(strprintf("%%%2x", static_cast<unsigned int>(str[f]))); + } return hex; } |