diff options
author | louiz’ <louiz@louiz.org> | 2018-08-23 20:31:31 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2018-08-23 20:31:31 +0200 |
commit | b1564e4ddc3e54ad78788a6f5643056d03a41678 (patch) | |
tree | 026958b802d90fa93741e6b7e539fd03ce7599de /src/xmpp/jid.cpp | |
parent | 0b51e3828116f6847865fae93893eb97a10d1cc2 (diff) | |
download | biboumi-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.cpp | 2 |
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 |