]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
That ought to silence clang-tidy.
authorMiod Vallat <miod.vallat@powerdns.com>
Fri, 18 Jul 2025 09:36:36 +0000 (11:36 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Fri, 18 Jul 2025 09:36:36 +0000 (11:36 +0200)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
modules/lmdbbackend/lmdbbackend.cc

index b3f016361ca5666cd55984b065396ee553d8c927..769e1a3ad6847c706b90ea7aacec1f89ad0a0d35 100644 (file)
@@ -1902,7 +1902,7 @@ bool LMDBBackend::get(DNSZoneRecord& zr)
       }
 
       deserializeFromBuffer(d_currentVal.get<string_view>(), d_currentrrset);
-      d_currentrrsettime = LMDBLS::LSgetTimestamp(d_currentVal.getNoStripHeader<string_view>()) / (1000UL * 1000UL * 1000UL);
+      d_currentrrsettime = static_cast<time_t>(LMDBLS::LSgetTimestamp(d_currentVal.getNoStripHeader<string_view>()) / (1000UL * 1000UL * 1000UL));
       d_currentrrsetpos = 0;
     }
     else {