From: Remi Gacogne Date: Thu, 29 Mar 2018 13:14:44 +0000 (+0200) Subject: dnsdist: Fix a sign comparison warning on armv7l X-Git-Tag: dnsdist-1.3.0~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6415%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Fix a sign comparison warning on armv7l --- diff --git a/pdns/dnscrypt.hh b/pdns/dnscrypt.hh index acdad413b2..f35df62d0d 100644 --- a/pdns/dnscrypt.hh +++ b/pdns/dnscrypt.hh @@ -98,7 +98,7 @@ public: } bool isValid(time_t now) const { - return ntohl(getTSStart()) <= now && now <= ntohl(getTSEnd()); + return ntohl(getTSStart()) <= static_cast(now) && static_cast(now) <= ntohl(getTSEnd()); } unsigned char magic[DNSCRYPT_CERT_MAGIC_SIZE]; unsigned char esVersion[2];