mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-11 10:45:23 -04:00
Add a missing const
This commit is contained in:
parent
2b25c791ee
commit
0655c1d024
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue