From: Guilherme Maciel Ferreira Date: Tue, 3 Jan 2012 09:54:33 +0000 (-0200) Subject: PC-Lint warnings fixed: X-Git-Tag: v1.3~14 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=f2601e5702c842af4a0a987737de8cbc613317dc;p=pingcheck PC-Lint warnings fixed: - Info 732: Loss of sign (initialization) (int to unsigned int). --- diff --git a/src/dns/timetolive.cpp b/src/dns/timetolive.cpp index fa786b9..a32c9e2 100644 --- a/src/dns/timetolive.cpp +++ b/src/dns/timetolive.cpp @@ -64,7 +64,7 @@ void TimeToLive::set_value( const uint32_t ttl ) uint32_t TimeToLive::get_updated_value() const { ptime now = microsec_clock::universal_time(); - uint32_t elapsed_seconds = static_cast( + uint32_t elapsed_seconds = static_cast( (now - TtlSetTime).total_seconds() ); uint32_t original_ttl = get_value();