summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-31 17:01:38 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-31 17:01:38 +0300
commit5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5 (patch)
treeaeafccf4632262393b23e52afc9facc5ec9f1b3f /src/utils/stringutils.cpp
parent84f2cad3897d0dacb60cfef4e1860ffb8ec268e1 (diff)
downloadmanaverse-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.tar.gz
manaverse-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.tar.bz2
manaverse-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.tar.xz
manaverse-5a60cfd0ef0c2f8b78397d05a50ab9b939309ea5.zip
Fix sign on some vars.
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r--src/utils/stringutils.cpp9
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;
}