diff options
author | Marvin Borner | 2019-10-13 20:11:32 +0200 |
---|---|---|
committer | Marvin Borner | 2019-10-13 20:11:32 +0200 |
commit | 8754542ce074bef0984f91ce1b1cd8aff9b3d5e9 (patch) | |
tree | 66c6df9f2a2e9e4482ddfbce10490f706f78da33 /src/kernel/paging/kheap.c | |
parent | 58804851fc49f6db1c87f791d39779766108efb0 (diff) |
Fixed all compiler warnings
Diffstat (limited to 'src/kernel/paging/kheap.c')
-rw-r--r-- | src/kernel/paging/kheap.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |