From 885df8890e537383df71f8f828444d6c5cce0243 Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 20 Dec 2022 20:39:43 -0500 Subject: more completion --- arr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arr.c') diff --git a/arr.c b/arr.c index 2ca394c..402420f 100644 --- a/arr.c +++ b/arr.c @@ -37,8 +37,8 @@ static inline ArrHeader *arr_hdr_(void *arr) { return (ArrHeader *)((char *)arr - offsetof(ArrHeader, data)); } -static inline u32 arr_len(void *arr) { - return arr ? arr_hdr_(arr)->len : 0; +static inline u32 arr_len(const void *arr) { + return arr ? arr_hdr_((void*)arr)->len : 0; } static inline u32 arr_cap(void *arr) { -- cgit v1.2.3