From 02340285c564a7e82105137192d46d554a6fce3a Mon Sep 17 00:00:00 2001 From: Dominic Hamon Date: Sun, 30 May 2021 20:37:54 +0100 Subject: Added -Wshorten-64-to-32 and fixed all warnings. --- src/modules/m_dnsbl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_dnsbl.cpp') diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index 76ca47bb4..f61998981 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -126,7 +126,7 @@ public: { type = Type::BITMASK; - bitmask = tag->getUInt("bitmask", 0, 0, UINT_MAX); + bitmask = static_cast(tag->getUInt("bitmask", 0, 0, UINT_MAX)); records = 0; } else if (stdalgo::string::equalsci(typestr, "record")) @@ -149,7 +149,7 @@ public: } reason = tag->getString("reason", "Your IP (%ip%) has been blacklisted by a DNSBL.", 1, ServerInstance->Config->Limits.MaxLine); - timeout = tag->getDuration("timeout", 0, 1, 60); + timeout = static_cast(tag->getDuration("timeout", 0, 1, 60)); markident = tag->getString("ident"); markhost = tag->getString("host"); xlineduration = tag->getDuration("duration", 60*60, 1); @@ -187,7 +187,7 @@ class DNSBLResolver : public DNS::Request return; } - int i = countExt.Get(them); + intptr_t i = countExt.Get(them); if (i) countExt.Set(them, i - 1); @@ -358,7 +358,7 @@ class DNSBLResolver : public DNS::Request if (!them || them->client_sa != theirsa) return; - int i = countExt.Get(them); + intptr_t i = countExt.Get(them); if (i) countExt.Set(them, i - 1); -- cgit v1.3.1-10-gc9f91