summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-11-14 23:39:28 +0100
committerFlorent Le Coz <louiz@louiz.org>2013-11-14 23:39:28 +0100
commita85e1abaaa5fe4f6cd9da7276088d14bf5f2c41f (patch)
treec8ebfd7bfca30251289d4e4685ac4cc66d93c032 /src
parent641166b037f73e47fe29eb9d7542c39349c28428 (diff)
downloadbiboumi-a85e1abaaa5fe4f6cd9da7276088d14bf5f2c41f.tar.gz
biboumi-a85e1abaaa5fe4f6cd9da7276088d14bf5f2c41f.tar.bz2
biboumi-a85e1abaaa5fe4f6cd9da7276088d14bf5f2c41f.tar.xz
biboumi-a85e1abaaa5fe4f6cd9da7276088d14bf5f2c41f.zip
Fix a warning
Diffstat (limited to 'src')
-rw-r--r--src/xmpp/xmpp_stanza.cpp2
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 == '&')
{