]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Update ext/lmdb-safe/lmdb-safe.hh
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 17 Mar 2023 10:21:46 +0000 (11:21 +0100)
committerGitHub <noreply@github.com>
Fri, 17 Mar 2023 10:21:46 +0000 (11:21 +0100)
Co-authored-by: Remi Gacogne <github@coredump.fr>
ext/lmdb-safe/lmdb-safe.hh

index 597aa438e59a47b78f60fb57a89fe52a0193f9c3..1213f05cc0245bafdab1bd25a9f33e7cdfc8147e 100644 (file)
@@ -216,7 +216,7 @@ struct MDBOutVal
 
     size_t offset = LMDBLS::LScheckHeaderAndGetSize(this, sizeof(T));
 
-    memcpy(&ret, (char *)d_mdbval.mv_data+offset, sizeof(T));
+    memcpy(&ret, reinterpret_cast<const char *>(d_mdbval.mv_data)+offset, sizeof(T));
     return ret;
   }