From fd431fc36b8e0ae12ae1899f9fd38803cf4695e9 Mon Sep 17 00:00:00 2001 From: Kevin Li Date: Thu, 7 Nov 2024 22:49:21 +0800 Subject: [PATCH] fix error of clang --- src/babylon/reusable/memory_resource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/babylon/reusable/memory_resource.cpp b/src/babylon/reusable/memory_resource.cpp index 305b380..9380cf7 100644 --- a/src/babylon/reusable/memory_resource.cpp +++ b/src/babylon/reusable/memory_resource.cpp @@ -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(_free_end - _free_begin); while (page_array != nullptr) { SanitizerHelper::PoisonGuard guard {page_array}; auto end = &page_array->pages[PAGE_ARRAY_CAPACITY];