lib/os/heap: fix a type
Rationale in commit b1eefc0c26
("lib/os/heap: straighten up our type
usage").
Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
This commit is contained in:
parent
806ce3723d
commit
f13387d8d2
1 changed files with 1 additions and 1 deletions
|
@ -381,7 +381,7 @@ void *sys_heap_aligned_realloc(struct sys_heap *heap, void *ptr,
|
|||
} else if (!chunk_used(h, rc) &&
|
||||
(chunk_size(h, c) + chunk_size(h, rc) >= chunks_need)) {
|
||||
/* Expand: split the right chunk and append */
|
||||
chunkid_t split_size = chunks_need - chunk_size(h, c);
|
||||
chunksz_t split_size = chunks_need - chunk_size(h, c);
|
||||
|
||||
#ifdef CONFIG_SYS_HEAP_RUNTIME_STATS
|
||||
h->allocated_bytes += split_size * CHUNK_UNIT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue