From ca3bf1015c8afc57267dcdb4dc4b7bdd65b6849b Mon Sep 17 00:00:00 2001 From: shahwali Date: Sun, 10 May 2026 22:24:54 +0200 Subject: [PATCH] Replace `**` syntax with `@splat` --- src/iterator.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iterator.zig b/src/iterator.zig index c28bfee..f95baec 100644 --- a/src/iterator.zig +++ b/src/iterator.zig @@ -6,7 +6,7 @@ const NSFastEnumerationState = extern struct { state: c_ulong = 0, itemsPtr: ?[*]objc.c.id = null, mutationsPtr: ?*c_ulong = null, - extra: [5]c_ulong = [_]c_ulong{0} ** 5, + extra: [5]c_ulong = @splat(0), }; /// An iterator that uses the fast enumeration protocol[1] to iterate over @@ -20,7 +20,7 @@ pub const Iterator = struct { state: NSFastEnumerationState = .{}, initial_mutations_value: ?c_ulong = null, // Clang compiles `for…in` loops with a size 16 buffer. - buffer: [16]objc.c.id = [_]objc.c.id{null} ** 16, + buffer: [16]objc.c.id = @splat(null), slice: []const objc.c.id = &.{}, pub fn init(object: objc.Object) Iterator {