From 0655c1d0249d626e578b795efbac01ef349e6884 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 26 Dec 2021 23:37:52 +0100 Subject: [PATCH] Add a missing const --- h_malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h_malloc.c b/h_malloc.c index 7736177..a35d5b6 100644 --- a/h_malloc.c +++ b/h_malloc.c @@ -946,7 +946,7 @@ static int regions_insert(void *p, size_t size, size_t guard_size) { } static struct region_metadata *regions_find(const void *p) { - struct region_allocator *ra = ro.region_allocator; + const struct region_allocator *ra = ro.region_allocator; size_t mask = ra->total - 1; size_t index = hash_page(p) & mask;