Permalink
Browse files

Fix comparison between signed and unsigned by using uint32_t for ince…

…ption on INCEPTION-EPOCH
  • Loading branch information...
1 parent d1e2482 commit 00a7b2508cd5f0349511e370eee5c3939f17a401 @cmouse cmouse committed with Habbie Aug 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit 00a7b25

Please sign in to comment.