diff --git a/src/memory/frame.c b/src/memory/frame.c index 97dce7a..2277254 100644 --- a/src/memory/frame.c +++ b/src/memory/frame.c @@ -31,7 +31,7 @@ void *alloc_frames(size_t size) kprintf(KERN_CRIT "Not enough frames (max: %d)\n", MAX_FRAMES); return NULL; } - size_t i = find_next_block(nb_frames); + int i = find_next_block(nb_frames); if (i == -1) { kprintf(KERN_WARNING "Not enough frames available\n", MAX_FRAMES); @@ -40,7 +40,7 @@ void *alloc_frames(size_t size) for (size_t j = 0; j < nb_frames; j++) frame_table[j + i] = 1; remaining_frames -= nb_frames; - return (void*)(i * PAGE_SIZE); + return (void *)(i * PAGE_SIZE); } int free_frames(void *frame_ptr, size_t size)