From: Michal 'vorner' Vaner Date: Mon, 5 Nov 2012 15:30:04 +0000 (+0100) Subject: [2384] Provide a note about used data type X-Git-Tag: trac2487_base~1^2~29^2~2^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f9fc66cfe44292f46f2a49841b966ee2ee18bc6;p=thirdparty%2Fkea.git [2384] Provide a note about used data type --- diff --git a/src/lib/dns/rrttl.cc b/src/lib/dns/rrttl.cc index bb81da605e..667b634912 100644 --- a/src/lib/dns/rrttl.cc +++ b/src/lib/dns/rrttl.cc @@ -58,6 +58,9 @@ namespace isc { namespace dns { RRTTL::RRTTL(const std::string& ttlstr) { + // We use a larger data type during the computation. This is because + // some compilers don't fail when out of range, so we check the range + // ourself later. int64_t val = 0; const string::const_iterator end = ttlstr.end();