From 6be0a4653fa62ba8c9ae1c62ba4c56f46f00d7b6 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Wed, 5 May 2021 03:09:59 -0700 Subject: damn tho Former-commit-id: e1df98878d2dea8530d50d49e8e5b9369931eb43 --- src/ast/base.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ast') diff --git a/src/ast/base.zig b/src/ast/base.zig index fd19c8a70..1e2a414a0 100644 --- a/src/ast/base.zig +++ b/src/ast/base.zig @@ -29,7 +29,10 @@ pub const Ref = packed struct { // 2 bits of padding for whatever is the parent pub const Int = u30; - pub const None = Ref{ .inner_index = std.math.maxInt(Ref.Int) }; + pub const None = Ref{ + .inner_index = std.math.maxInt(Ref.Int), + .source_index = std.math.maxInt(Ref.Int), + }; pub fn isNull(self: *const Ref) bool { return self.source_index == std.math.maxInt(Ref.Int) and self.inner_index == std.math.maxInt(Ref.Int); } -- cgit v1.2.3