From 040b39b59f48b6224110350b45a88ba2031d1b73 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Wed, 13 Mar 2024 11:05:28 +0100 Subject: [PATCH] Explicit cast to do multiply in 64-bit --- pdns/validate.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/validate.cc b/pdns/validate.cc index 5726e3af9c..33e6ecbd57 100644 --- a/pdns/validate.cc +++ b/pdns/validate.cc @@ -506,7 +506,7 @@ dState matchesNSEC(const DNSName& name, uint16_t qtype, const DNSName& nsecOwner [[nodiscard]] uint64_t getNSEC3DenialProofWorstCaseIterationsCount(uint8_t maxLabels, uint16_t iterations, size_t saltLength) { - return (iterations + 1U + (saltLength > 0 ? 1U : 0U)) * maxLabels; + return static_cast((iterations + 1U + (saltLength > 0 ? 1U : 0U))) * maxLabels; } /* -- 2.47.2