]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Use uint32_t in makeCombinedKey
authorFred Morcos <fred.morcos@open-xchange.com>
Wed, 16 Oct 2024 13:17:53 +0000 (15:17 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 16 Oct 2024 13:57:48 +0000 (15:57 +0200)
ext/lmdb-safe/lmdb-typed.hh

index 35cdaf1e28a3415eba5e5eecb7726a4b43ef3ac5..9558d89af3a1e221034cc6a80248f6fa7433689e 100644 (file)
@@ -117,7 +117,7 @@ namespace {
     std::string sval((char*) val.d_mdbval.mv_data, val.d_mdbval.mv_size);
 
     if (val.d_mdbval.mv_size != 0 &&  // empty val case, for range queries
-        val.d_mdbval.mv_size != 4) {   // uint32_t case
+        val.d_mdbval.mv_size != sizeof(uint32_t)) {
       throw std::runtime_error("got wrong size value in makeCombinedKey");
     }