Skip to content

Commit 2299e94

Browse files
committed
Use auto.
1 parent 2acda39 commit 2299e94

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

include/bitcoin/database/impl/primitives/hashhead.ipp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ inline bool CLASS::push(const Link& current, bytes& next,
172172
// xcode clang++16 does not support C++20 std::atomic_ref.
173173
////const std::atomic_ref<integer> head(unsafe_byte_cast<integer>(raw));
174174
auto& head = *pointer_cast<std::atomic<integer>>(raw);
175-
176-
integer top = head.load(std::memory_order_acquire);
175+
auto top = head.load(std::memory_order_acquire);
177176
do
178177
{
179178
// Compiler could order this after head.store, which would expose key

0 commit comments

Comments
 (0)