Skip to content

Commit

Permalink
Fix comparison between signed and unsigned by using uint32_t for ince…
Browse files Browse the repository at this point in the history
…ption on INCEPTION-EPOCH
  • Loading branch information
cmouse authored and Peter van Dijk committed Dec 5, 2013
1 parent d1e2482 commit 00a7b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/serialtweaker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 00a7b25

Please sign in to comment.