From 80cf88bcb7d3a5a1dc27887d7280e50b1dd89929 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 30 Oct 2024 15:00:44 -0400 Subject: alloc: Don't require the old size in varena_realloc() Instead, just look up which arena contains the pointer. --- tests/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/alloc.c b/tests/alloc.c index 4aae515..5eb4e9e 100644 --- a/tests/alloc.c +++ b/tests/alloc.c @@ -17,7 +17,7 @@ struct flexible { /** Check varena_realloc() poisoning for a size combination. */ static struct flexible *check_varena_realloc(struct varena *varena, struct flexible *flexy, size_t old_count, size_t new_count) { - flexy = varena_realloc(varena, flexy, old_count, new_count); + flexy = varena_realloc(varena, flexy, new_count); bfs_everify(flexy); for (size_t i = 0; i < new_count; ++i) { -- cgit v1.2.3