diff options
-rw-r--r-- | src/xmpp/xmpp_stanza.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/xmpp_stanza.cpp b/src/xmpp/xmpp_stanza.cpp index 169a8ef..348d73c 100644 --- a/src/xmpp/xmpp_stanza.cpp +++ b/src/xmpp/xmpp_stanza.cpp @@ -42,7 +42,7 @@ std::string xml_unescape(const std::string& data) std::string res; res.reserve(data.size()); 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 == '&') { |