From 8d3bfbcdc36fb769257ae58c0374ef44253e0a34 Mon Sep 17 00:00:00 2001 From: Brett Date: Tue, 4 Jun 2024 14:00:05 -0400 Subject: [PATCH] use pointer type --- CMakeLists.txt | 2 +- include/blt/std/allocator.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 58c5f66..01ffd6d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.20) include(cmake/color.cmake) -set(BLT_VERSION 0.17.12) +set(BLT_VERSION 0.17.13) set(BLT_TEST_VERSION 0.0.1) set(BLT_TARGET BLT) diff --git a/include/blt/std/allocator.h b/include/blt/std/allocator.h index 3855643..77d8c2a 100644 --- a/include/blt/std/allocator.h +++ b/include/blt/std/allocator.h @@ -802,7 +802,7 @@ namespace blt { if (head == nullptr) return nullptr; - blt::size_t remaining_bytes = BLOCK_REMAINDER - static_cast(head->metadata.offset - head->buffer); + blt::size_t remaining_bytes = BLOCK_REMAINDER - static_cast(head->metadata.offset - head->buffer); auto pointer = static_cast(head->metadata.offset); return std::align(alignment, bytes, pointer, remaining_bytes); }