Parcourir la source

[2384] Remove unnecessary cast

Michal 'vorner' Vaner il y a 12 ans
Parent
commit
acd2c55e6e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);
     }