From 8754542ce074bef0984f91ce1b1cd8aff9b3d5e9 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 13 Oct 2019 20:11:32 +0200 Subject: Fixed all compiler warnings --- src/kernel/paging/kheap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/paging/kheap.c') diff --git a/src/kernel/paging/kheap.c b/src/kernel/paging/kheap.c index e4f3d20..9af33f7 100644 --- a/src/kernel/paging/kheap.c +++ b/src/kernel/paging/kheap.c @@ -160,7 +160,7 @@ void *alloc(uint32_t size, unsigned char page_align, heap_t *heap) { uint32_t idx = -1; uint32_t value = 0x0; - while (iterator < heap->index.size) { + while (iterator < (int) heap->index.size) { uint32_t tmp = (uint32_t) lookup_ordered_array(iterator, &heap->index); if (tmp > value) { value = tmp; @@ -169,7 +169,7 @@ void *alloc(uint32_t size, unsigned char page_align, heap_t *heap) { iterator++; } - if (idx == -1) { + if ((int) idx == -1) { header_t *header = (header_t *) old_end_address; header->magic = HEAP_MAGIC; header->size = new_length - old_length; -- cgit v1.2.3