summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/arr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/arr.c b/util/arr.c
index 97f4bd0..b3e0558 100644
--- a/util/arr.c
+++ b/util/arr.c
@@ -11,13 +11,13 @@ static void arr_create(Array *arr, size_t item_sz) {
arr->data = NULL;
}
-static void arr_reserve(Array *arr, size_t n) {
+static inline void arr_reserve(Array *arr, size_t n) {
arr->cap = n;
arr->data = realloc(arr->data, arr->item_sz * arr->cap);
}
-static void *arr_last(Array *arr) {
+static inline void *arr_last(Array *arr) {
if (arr->data)
return (void*)((char*)arr->data + arr->item_sz * (arr->len - 1));
else