From 2dea92dcd9184c3a37f07761009944bc8fd4d352 Mon Sep 17 00:00:00 2001 From: Pascal Zittlau Date: Fri, 24 Oct 2025 14:21:58 +0200 Subject: [PATCH] fix --- src/root.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/root.zig b/src/root.zig index e11d483..82ad36d 100644 --- a/src/root.zig +++ b/src/root.zig @@ -73,14 +73,14 @@ fn intersect(comptime as: []const @Type(.enum_literal), comptime bs: []const @Ty pub fn logEnabled(comptime tags: []const @Type(.enum_literal)) bool { // If `tags` has at least one in `options.tags_disabled` then we never log. if (options.tags_disabled.len > 0) { - if (intersect(tags, options.tags_disabled)) { + if (comptime intersect(tags, options.tags_disabled)) { return false; } } // If `tags` has at least one in `options.tags_enabled` then we should log. if (options.tags_enabled.len > 0) { - return intersect(tags, options.tags_enabled); + return comptime intersect(tags, options.tags_enabled); } // If neither is set then we just log everything.