diff options
author | pommicket <pommicket@gmail.com> | 2022-12-20 20:39:43 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-20 20:39:43 -0500 |
commit | 885df8890e537383df71f8f828444d6c5cce0243 (patch) | |
tree | 469388524c6738c3c44d9ee45c5d114b6ed0cb44 /arr.c | |
parent | d3375f02cfed99ed40c28631e62654af23817729 (diff) |
more completion
Diffstat (limited to 'arr.c')
-rw-r--r-- | arr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |