Browse Source

[2384] Remove unnecessary cast

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

+ 1 - 1
src/lib/dns/rrttl.cc

@@ -110,7 +110,7 @@ RRTTL::RRTTL(const std::string& ttlstr) {
     }
 
     if (val >= 0 && val <= 0xffffffff) {
-        ttlval_ = static_cast<uint32_t>(val);
+        ttlval_ = val;
     } else {
         isc_throw(InvalidRRTTL, "TTL out of range: " << ttlstr);
     }