Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonly committed Oct 14, 2021
1 parent f181b4d commit 7de155f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbms/src/Common/ArenaWithFreeLists.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ArenaWithFreeLists : private Allocator<false>
if (auto & free_block_ptr = free_lists[list_idx])
{
/// Let's take it. And change the head of the list to the next item in the list.
auto *const res = free_block_ptr->data;
auto * const res = free_block_ptr->data;
free_block_ptr = free_block_ptr->next;
return res;
}
Expand All @@ -83,7 +83,7 @@ class ArenaWithFreeLists : private Allocator<false>

/// Insert the released block into the head of the list.
auto & free_block_ptr = free_lists[list_idx];
auto *const old_head = free_block_ptr;
auto * const old_head = free_block_ptr;
free_block_ptr = reinterpret_cast<Block *>(ptr);
free_block_ptr->next = old_head;
}
Expand Down

0 comments on commit 7de155f

Please sign in to comment.