Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhongjia committed Jul 27, 2024
1 parent bf6ca62 commit a0305e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/architecture.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a0305e4

Please sign in to comment.