From 6a7eecec57783a042d12f895d5ae148c44f4d074 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 10:52:22 +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