From 4ce62cf2214011168d19318a97560ffe4fc75cbd Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Fri, 16 Feb 2024 21:55:30 +0100 Subject: [PATCH] Fix of allocator::new. --- lib/std/core/mem_allocator.c3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/core/mem_allocator.c3 b/lib/std/core/mem_allocator.c3 index 090b410da..386da66d4 100644 --- a/lib/std/core/mem_allocator.c3 +++ b/lib/std/core/mem_allocator.c3 @@ -108,7 +108,7 @@ macro void free_aligned(Allocator* allocator, void* ptr) /** * @require $vacount < 2 : "Too many arguments." - * @require $or($vacount == 1, $assignable($vaexpr(0), $Type)) : "The second argument must be an initializer for the type" + * @require $or($vacount == 0, $assignable($vaexpr(0), $Type)) : "The second argument must be an initializer for the type" **/ macro new(Allocator* allocator, $Type, ...) @nodiscard {