diff --git a/include/bitcoin/database/impl/record_hash_table.ipp b/include/bitcoin/database/impl/record_hash_table.ipp index 22c57e367..43aa6796c 100644 --- a/include/bitcoin/database/impl/record_hash_table.ipp +++ b/include/bitcoin/database/impl/record_hash_table.ipp @@ -78,8 +78,8 @@ void record_hash_table::update(const KeyType& key, // Found. if (item.compare(key)) { - const auto data = REMAP_ADDRESS(item.data()); - auto serial = make_unsafe_serializer(data); + const auto memory = item.data(); + auto serial = make_unsafe_serializer(REMAP_ADDRESS(memory)); write(serial); return; } diff --git a/include/bitcoin/database/impl/slab_hash_table.ipp b/include/bitcoin/database/impl/slab_hash_table.ipp index 1cdea866a..955127252 100644 --- a/include/bitcoin/database/impl/slab_hash_table.ipp +++ b/include/bitcoin/database/impl/slab_hash_table.ipp @@ -80,8 +80,8 @@ file_offset slab_hash_table::update(const KeyType& key, // Found. if (item.compare(key)) { - const auto data = REMAP_ADDRESS(item.data()); - auto serial = make_unsafe_serializer(data); + const auto memory = item.data(); + auto serial = make_unsafe_serializer(REMAP_ADDRESS(memory)); write(serial); return item.offset(); }