]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2384] Provide a note about used data type
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 5 Nov 2012 15:30:04 +0000 (16:30 +0100)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 5 Nov 2012 15:30:04 +0000 (16:30 +0100)
src/lib/dns/rrttl.cc

index bb81da605e910c19011ef8fcf9fc95aa056bbf8d..667b6349121590730393eaedc7559bf4b68fb231 100644 (file)
@@ -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();