Skip to content

Commit

Permalink
node: fix Clang Tidy after PR 1820 (#1824)
Browse files Browse the repository at this point in the history
  • Loading branch information
canepat authored Feb 12, 2024
1 parent 24d0974 commit f361840
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions silkworm/node/snapshots/seg/compressor/patricia_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ uint32_t PatriciaTreePathWalker::transition(unsigned char b, bool readonly) {

uint32_t tail_len = s->tail & 0x1f;
// the first bit where b32 and tail are different
uint32_t first_diff = static_cast<uint32_t>(std::countl_zero(s->tail ^ b32));
auto first_diff = static_cast<uint32_t>(std::countl_zero(s->tail ^ b32));

if (first_diff < bits_left) {
// divergence (where the key being searched and the existing structure of patricia tree becomes incompatible) is within currently supplied byte of the search key, b
Expand Down Expand Up @@ -447,7 +447,7 @@ uint32_t PatriciaTreeMatchFinderImpl::unfold(unsigned char b) {
}

// the first bit where b32 and tail are different
uint32_t first_diff = static_cast<uint32_t>(std::countl_zero(tail ^ b32));
auto first_diff = static_cast<uint32_t>(std::countl_zero(tail ^ b32));

if (first_diff < bits_left) {
// divergence (where the key being searched and the existing structure of patricia tree becomes incompatible) is within currently supplied byte of the search key, b
Expand Down

0 comments on commit f361840

Please sign in to comment.