From 42f47327da6a208ac3cd1f9bca07fc506ed51a63 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 10:52:01 +0200 Subject: Merging upstream version 1.60.0. Signed-off-by: Daniel Baumann --- src/allocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/allocator.h') diff --git a/src/allocator.h b/src/allocator.h index 97b9a41..363ee91 100644 --- a/src/allocator.h +++ b/src/allocator.h @@ -119,7 +119,7 @@ struct BlockAllocator { } if (!head || - head->end - head->last < static_cast(size + sizeof(size_t))) { + static_cast(head->end - head->last) < size + sizeof(size_t)) { head = alloc_mem_block(block_size); } -- cgit v1.2.3