mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-19 22:10:19 +02:00
add inline hint to get_size_info
This commit is contained in:
parent
e85c69a0a4
commit
6f9de3e667
1 changed files with 1 additions and 1 deletions
2
malloc.c
2
malloc.c
|
@ -151,7 +151,7 @@ struct size_info {
|
||||||
size_t class;
|
size_t class;
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct size_info get_size_info(size_t size) {
|
static inline struct size_info get_size_info(size_t size) {
|
||||||
if (size == 0) {
|
if (size == 0) {
|
||||||
return (struct size_info){16, 0};
|
return (struct size_info){16, 0};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue