From e2197b838992c3880dec09a185a436a34161cfa7 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 17 Apr 2026 15:38:39 +1000 Subject: [PATCH] util: xrealloc should take a size_t For correctness only because this is C and types are mostly just there for lolz, not because they're actualy useful. Assisted-by: Claude:claude-opus-4-6 Part-of: --- src/util-mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util-mem.h b/src/util-mem.h index c02affd..bacc708 100644 --- a/src/util-mem.h +++ b/src/util-mem.h @@ -117,7 +117,7 @@ xalloc(size_t size) } static inline void * -xrealloc(void *ptr, int size) +xrealloc(void *ptr, size_t size) { void *tmp = realloc(ptr, size); assert(tmp);