summaryrefslogtreecommitdiff
path: root/src/zisp/value.zig
diff options
context:
space:
mode:
authorTaylan Kammer <taylan.kammer@gmail.com>2026-01-12 15:51:07 +0100
committerTaylan Kammer <taylan.kammer@gmail.com>2026-01-12 15:51:07 +0100
commitf1f134d072e375335be5c1203095115fef1db253 (patch)
tree83114bb0e7a86feb991ddcaf61c47f0f9f2c0535 /src/zisp/value.zig
parente7379444abab7abf7a0a2e61b1f57ba0f83511a0 (diff)
Code cleanup.
Diffstat (limited to 'src/zisp/value.zig')
-rw-r--r--src/zisp/value.zig2
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,