From aec2392d2cbf58db2ab118643e3a20a36bbc3f8d Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sat, 1 Jun 2024 05:57:24 -0700 Subject: [PATCH] fill out this union --- json.zig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/json.zig b/json.zig index 7e86adfe7221e9921b14d02f716c6c137f8be449..017b349af85e9c0fd7854d3dbf24af9118a61224 100644 --- a/json.zig +++ b/json.zig @@ -471,15 +471,15 @@ pub const NumberIndex = enum(u32) { _, }; -pub const Value = union(enum) { +pub const Value = union(enum(u8)) { zero, null, true, false, - object, - array, - string, - number, + object: ObjectIndex, + array: ArrayIndex, + string: StringIndex, + number: NumberIndex, const Tag = std.meta.Tag(@This()); }; -- 2.54.0