warning: mismatched types on a variable

This commit is contained in:
0x35c 2024-10-15 10:57:15 +02:00
parent fd1086b408
commit 577d6c97ec

View File

@ -31,7 +31,7 @@ void *alloc_frames(size_t size)
kprintf(KERN_CRIT "Not enough frames (max: %d)\n", MAX_FRAMES); kprintf(KERN_CRIT "Not enough frames (max: %d)\n", MAX_FRAMES);
return NULL; return NULL;
} }
size_t i = find_next_block(nb_frames); int i = find_next_block(nb_frames);
if (i == -1) { if (i == -1) {
kprintf(KERN_WARNING "Not enough frames available\n", kprintf(KERN_WARNING "Not enough frames available\n",
MAX_FRAMES); MAX_FRAMES);