From 3614dd5811ebb0b7286e7ad8b66b4ef2ea6cc9c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 30 Sep 2020 10:57:32 +0200 Subject: array: mark array_get_ptr argument as const --- array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'array.h') diff --git a/array.h b/array.h index 6c9d8a8..69d6047 100644 --- a/array.h +++ b/array.h @@ -76,7 +76,7 @@ void *array_get(const Array*, size_t idx); */ bool array_set(Array*, size_t idx, void *item); /** Dereference pointer stored in array element. */ -void *array_get_ptr(Array*, size_t idx); +void *array_get_ptr(const Array*, size_t idx); /** Store the address to which ``item`` points to into the array. */ bool array_set_ptr(Array*, size_t idx, void *item); /** Add element to the end of the array. */ -- cgit v1.2.3