diff options
| author | 2017-11-17 00:02:03 +0000 | |
|---|---|---|
| committer | 2017-11-17 15:33:01 +0000 | |
| commit | 36040be2952186d56a6646ee7d972aaafdd4e31a (patch) | |
| tree | 72be7108a94dd6bd0ea2842c53ba8890c44d12d8 /src/modules/m_cloaking.cpp | |
| parent | Add events which are fired when a service is added or deleted. (diff) | |
| download | inspircd++-36040be2952186d56a6646ee7d972aaafdd4e31a.tar.gz inspircd++-36040be2952186d56a6646ee7d972aaafdd4e31a.tar.bz2 inspircd++-36040be2952186d56a6646ee7d972aaafdd4e31a.zip | |
Fix a ton of -Wsign-conversion warnings.
Diffstat (limited to 'src/modules/m_cloaking.cpp')
| -rw-r--r-- | src/modules/m_cloaking.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index f9a7fa380..1cfd9516c 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -187,7 +187,7 @@ class ModuleCloaking : public Module * @param id A unique ID for this type of item (to make it unique if the item matches) * @param len The length of the output. Maximum for MD5 is 16 characters. */ - std::string SegmentCloak(const std::string& item, char id, int len) + std::string SegmentCloak(const std::string& item, char id, size_t len) { std::string input; input.reserve(key.length() + 3 + item.length()); @@ -197,7 +197,7 @@ class ModuleCloaking : public Module input.append(item); std::string rv = Hash->GenerateRaw(input).substr(0,len); - for(int i=0; i < len; i++) + for(size_t i = 0; i < len; i++) { // this discards 3 bits per byte. We have an // overabundance of bits in the hash output, doesn't @@ -210,8 +210,8 @@ class ModuleCloaking : public Module std::string SegmentIP(const irc::sockets::sockaddrs& ip, bool full) { std::string bindata; - int hop1, hop2, hop3; - int len1, len2; + size_t hop1, hop2, hop3; + size_t len1, len2; std::string rv; if (ip.sa.sa_family == AF_INET6) { |
