From 75185f9fa26b5fc49036008df16c8bb4f1a51a13 Mon Sep 17 00:00:00 2001 From: Taylan Kammer Date: Tue, 6 Jan 2026 07:45:07 +0100 Subject: Writergate, other 0.16 changes, and test fixes for new grammar. --- src/zisp/value.zig | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/zisp/value.zig') diff --git a/src/zisp/value.zig b/src/zisp/value.zig index 449a577..2d148ed 100644 --- a/src/zisp/value.zig +++ b/src/zisp/value.zig @@ -170,7 +170,14 @@ const endian = builtin.target.cpu.arch.endian(); const max = std.math.maxInt; /// Used when dealing with runes and short strings. -pub const ShortString = std.BoundedArray(u8, 6); +pub const ShortString = struct { + len: u8, + buf: [6]u8, + + pub fn slice(this: @This()) []const u8 { + return this.buf[0..this.len]; + } +}; /// Used to find the length of a rune or short string. pub fn sstrLen(x: u64) u8 { -- cgit v1.2.3