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:
Nicolas Pitre 2021-11-12 00:07:57 -05:00 committed by Anas Nashif
commit f13387d8d2

View file

@ -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;