summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r--src/utils/stringutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp
index 57d83fbdc..a4eafda26 100644
--- a/src/utils/stringutils.cpp
+++ b/src/utils/stringutils.cpp
@@ -535,7 +535,7 @@ std::string stringToHexPath(const std::string &str)
return "";
std::string hex = strprintf("%%%2x/", static_cast<int>(str[0]));
- for (unsigned f = 1, sz = str.size(); f < sz; f ++)
+ for (unsigned f = 1, sz = static_cast<unsigned>(str.size()); f < sz; f ++)
hex += strprintf("%%%2x", static_cast<int>(str[f]));
return hex;
}