From f9123b49e5bac5b82a78ce4982146b33e1c1c171 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Mon, 2 Sep 2024 15:28:39 -0400 Subject: [PATCH] kernel/allocator: Adjust type of index variable. --- src/system/kernel/slab/allocator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/slab/allocator.cpp b/src/system/kernel/slab/allocator.cpp index df55f095aa..4ba637501d 100644 --- a/src/system/kernel/slab/allocator.cpp +++ b/src/system/kernel/slab/allocator.cpp @@ -165,7 +165,7 @@ block_free(void* block, uint32 flags) void block_allocator_init_boot() { - for (int index = 0; index < kNumBlockSizes; index++) { + for (size_t index = 0; index < kNumBlockSizes; index++) { char name[32]; snprintf(name, sizeof(name), "block allocator: %lu", kBlockSizes[index]);