summaryrefslogtreecommitdiff
path: root/src/xmpp/jid.cpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-08-23 20:31:31 +0200
committerlouiz’ <louiz@louiz.org>2018-08-23 20:31:31 +0200
commitb1564e4ddc3e54ad78788a6f5643056d03a41678 (patch)
tree026958b802d90fa93741e6b7e539fd03ce7599de /src/xmpp/jid.cpp
parent0b51e3828116f6847865fae93893eb97a10d1cc2 (diff)
downloadbiboumi-b1564e4ddc3e54ad78788a6f5643056d03a41678.tar.gz
biboumi-b1564e4ddc3e54ad78788a6f5643056d03a41678.tar.bz2
biboumi-b1564e4ddc3e54ad78788a6f5643056d03a41678.tar.xz
biboumi-b1564e4ddc3e54ad78788a6f5643056d03a41678.zip
Fix a bunch of int to unsigned int conversion warnings
Diffstat (limited to 'src/xmpp/jid.cpp')
-rw-r--r--src/xmpp/jid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmpp/jid.cpp b/src/xmpp/jid.cpp
index 19d1b55..3c54fd4 100644
--- a/src/xmpp/jid.cpp
+++ b/src/xmpp/jid.cpp
@@ -106,7 +106,7 @@ std::string jidprep(const std::string& original)
--domain_end;
if (domain_end != domain && special_chars.count(domain[0]))
{
- std::memmove(domain, domain + 1, domain_end - domain + 1);
+ std::memmove(domain, domain + 1, static_cast<std::size_t>(domain_end - domain) + 1);
--domain_end;
}
// And if the final result is an empty string, return a dummy hostname