From 15ca46d1e70f24a1b37ac332630f6949552e4bda Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 16 Jan 2026 21:50:54 -0800 Subject: [PATCH] std.Io.Threaded: fix compilation error on some systems --- lib/std/Io/Threaded.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/std/Io/Threaded.zig b/lib/std/Io/Threaded.zig index 0adaa60a81..4024263f4f 100644 --- a/lib/std/Io/Threaded.zig +++ b/lib/std/Io/Threaded.zig @@ -2486,8 +2486,8 @@ fn batchWait(userdata: ?*anyopaque, b: *Io.Batch, timeout: Io.Timeout) Io.Batch. const submit_tail = b.user.submit_tail; b.impl.submit_tail = submit_tail; var complete_tail = b.impl.complete_tail; - var map_buffer: [poll_buffer_len]u32 = undefined; // poll_buffer index to operations index - var poll_i: usize = 0; + var map_buffer: [poll_buffer_len]u8 = undefined; // poll_buffer index to operations index + var poll_i: u8 = 0; defer { for (map_buffer[0..poll_i]) |op| { submit_head = submit_head.prev(len); @@ -2515,7 +2515,7 @@ fn batchWait(userdata: ?*anyopaque, b: *Io.Batch, timeout: Io.Timeout) Io.Batch. .events = posix.POLL.IN, .revents = 0, }; - map_buffer[poll_i] = op; + map_buffer[poll_i] = @intCast(op); poll_i += 1; }, }