summaryrefslogtreecommitdiff
path: root/arr.c
diff options
context:
space:
mode:
Diffstat (limited to 'arr.c')
-rw-r--r--arr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arr.c b/arr.c
index ae34ebc..f21790b 100644
--- a/arr.c
+++ b/arr.c
@@ -47,11 +47,11 @@ static void arr_resva_(void **arr, size_t n, size_t item_sz, Allocator *a) {
static void arr_set_len_(void **arr, size_t n, size_t item_sz) {
arr_resv_(arr, n, item_sz);
- arr_hdr(arr)->len = n;
+ arr_hdr(*arr)->len = n;
}
static void arr_set_lena_(void **arr, size_t n, size_t item_sz, Allocator *a) {
arr_resva_(arr, n, item_sz, a);
- arr_hdr(arr)->len = n;
+ arr_hdr(*arr)->len = n;
}
static void *arr_add_(void **arr, size_t item_sz) {