diff options
Diffstat (limited to 'src/zisp/value.zig')
| -rw-r--r-- | src/zisp/value.zig | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
