From f1f134d072e375335be5c1203095115fef1db253 Mon Sep 17 00:00:00 2001 From: Taylan Kammer Date: Mon, 12 Jan 2026 15:51:07 +0100 Subject: Code cleanup. --- src/zisp/value.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/zisp/value.zig') diff --git a/src/zisp/value.zig b/src/zisp/value.zig index 4a55677..48bd63f 100644 --- a/src/zisp/value.zig +++ b/src/zisp/value.zig @@ -182,7 +182,7 @@ pub const ShortString = struct { /// Used to find the length of a rune or short string. pub fn sstrLen(x: u64) u8 { const bytes: @Vector(8, u8) = @bitCast(x); - const nulls: @Vector(8, u8) = [_]u8{0} ** 8; + const nulls: @Vector(8, u8) = @splat(0); const comps: u8 = @bitCast(bytes == nulls); // Two bits will always be 0, since the actual short string starts at the // third byte; third lowest or third highest depending on endianness. So, -- cgit v1.2.3