From f45a934f50a3777eaed59fd621d2ca1babd71b99 Mon Sep 17 00:00:00 2001 From: Alexandros Naskos Date: Thu, 1 Apr 2021 14:19:02 +0300 Subject: [PATCH] Fixed for latest zig master --- src/semantic_tokens.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/semantic_tokens.zig b/src/semantic_tokens.zig index eab9747..fa7e5af 100644 --- a/src/semantic_tokens.zig +++ b/src/semantic_tokens.zig @@ -1108,8 +1108,8 @@ fn writeNodeTokens( tree.arrayTypeSentinel(node); try await @asyncCall(child_frame, {}, writeNodeTokens, .{ builder, arena, store, array_type.ast.elem_count }); - if (array_type.ast.sentinel) |sentinel| - try await @asyncCall(child_frame, {}, writeNodeTokens, .{ builder, arena, store, sentinel }); + if (array_type.ast.sentinel != 0) + try await @asyncCall(child_frame, {}, writeNodeTokens, .{ builder, arena, store, array_type.ast.sentinel }); try await @asyncCall(child_frame, {}, writeNodeTokens, .{ builder, arena, store, array_type.ast.elem_type }); },