Skip to content

Commit

Permalink
fix error of clang
Browse files Browse the repository at this point in the history
  • Loading branch information
oathdruid committed Nov 7, 2024
1 parent cc7cd6d commit fd431fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/babylon/reusable/memory_resource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ bool ExclusiveMonotonicBufferResource::contains(const void* ptr) noexcept {
auto page_size = _page_allocator->page_size();
auto page_array = _last_page_array;
auto iter = _last_page_pointer;
auto size = page_size - (_free_end - _free_begin);
auto size = page_size - static_cast<size_t>(_free_end - _free_begin);
while (page_array != nullptr) {
SanitizerHelper::PoisonGuard guard {page_array};
auto end = &page_array->pages[PAGE_ARRAY_CAPACITY];
Expand Down

0 comments on commit fd431fc

Please sign in to comment.