From 638a7c3414cda87c758a410de4048d878d8842a8 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 29 Mar 2018 15:14:44 +0200 Subject: [PATCH] dnsdist: Fix a sign comparison warning on armv7l --- pdns/dnscrypt.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnscrypt.hh b/pdns/dnscrypt.hh index acdad413b..f35df62d0 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]; -- 2.40.0