From: Aki Tuomi Date: Wed, 28 Aug 2013 18:15:35 +0000 (+0300) Subject: Fix comparison between signed and unsigned by using uint32_t for inception on INCEPTI... X-Git-Tag: auth-3.3.1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00a7b2508cd5f0349511e370eee5c3939f17a401;p=thirdparty%2Fpdns.git Fix comparison between signed and unsigned by using uint32_t for inception on INCEPTION-EPOCH --- diff --git a/pdns/serialtweaker.cc b/pdns/serialtweaker.cc index f824f87cfb..1e65d3f75b 100644 --- a/pdns/serialtweaker.cc +++ b/pdns/serialtweaker.cc @@ -80,7 +80,7 @@ uint32_t calculateEditSoa(SOAData sd, const string& kind) { return time(0); } else if(pdns_iequals(kind,"INCEPTION-EPOCH")) { - time_t inception = getStartOfWeek(); + uint32_t inception = getStartOfWeek(); if (sd.serial < inception) return inception; }