From eee11292dcfeaa39d79074c783cddb2472d6912a Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Wed, 28 Aug 2013 21:15:35 +0300 Subject: [PATCH] Fix comparison between signed and unsigned by using uint32_t for inception on INCEPTION-EPOCH --- pdns/serialtweaker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/serialtweaker.cc b/pdns/serialtweaker.cc index 350155bce0..688b1b0b33 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; } -- 2.47.3