From 7d83278bc64bfd4bf17e3183775b755a5ff643fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Gr=C3=A9goire?= Date: Sun, 27 Sep 2026 21:36:45 -0400 Subject: [PATCH] mm/zone: formatting --- src/mm/zone.zig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mm/zone.zig b/src/mm/zone.zig index 783c86a..c023e2a 100644 --- a/src/mm/zone.zig +++ b/src/mm/zone.zig @@ -263,7 +263,11 @@ const Slab = struct { fn take_bit(self: *Slab, word_idx: usize, bit: anytype) u16 { self.bitmap()[word_idx] &= ~(@as(u64, 1) << @intCast(bit)); const allocated: u16 = @intCast(word_idx * 64 + bit); - self.alloc_rr = if (allocated + 1 >= self.capacity) 0 else allocated + 1; + self.alloc_rr = if (allocated + 1 >= self.capacity) + 0 + else + allocated + 1; + return allocated; }