Fix a warning

This commit is contained in:
Florent Le Coz
2013-11-14 23:39:28 +01:00
parent 641166b037
commit a85e1abaaa
+1 -1
View File
@@ -42,7 +42,7 @@ std::string xml_unescape(const std::string& data)
std::string res; std::string res;
res.reserve(data.size()); res.reserve(data.size());
const char* str = data.c_str(); const char* str = data.c_str();
while (str && *str && (str - data.c_str()) < data.size()) while (str && *str && static_cast<size_t>(str - data.c_str()) < data.size())
{ {
if (*str == '&') if (*str == '&')
{ {