From a0305e425896bebac8d64b3d3967f4603c72bf38 Mon Sep 17 00:00:00 2001 From: jinzhongjia Date: Sat, 27 Jul 2024 22:43:44 +0800 Subject: [PATCH] fix compile error --- src/architecture.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/architecture.zig b/src/architecture.zig index dfcdb89..542e0d7 100644 --- a/src/architecture.zig +++ b/src/architecture.zig @@ -35,10 +35,10 @@ fn archToString(arch: std.Target.Cpu.Arch) ?[]const u8 { /// /// for performance, we treat this function as comptime-func pub fn platform_str(comptime params: DetectParams) !?[]const u8 { - const os_str = comptime osToString(params.os) orelse + const os_str = (comptime osToString(params.os)) orelse return error.UnsupportedSystem; - const arch_str = comptime archToString(params.arch) orelse + const arch_str = (comptime archToString(params.arch)) orelse return error.UnsupportedSystem; if (params.reverse)