Browse Source

[2384] Provide a note about used data type

Michal 'vorner' Vaner 12 years ago
parent
commit
0f9fc66cfe
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/lib/dns/rrttl.cc

+ 3 - 0
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();