From 1843d522173a646786a226320e1443d43591fbca Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 18 Feb 2022 16:07:06 +0000 Subject: Fix typo --- src/check_builtin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/check_builtin.cpp') diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index c6b7de506..f440aa4d5 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -249,7 +249,7 @@ bool check_builtin_objc_procedure(CheckerContext *c, Operand *operand, Ast *call if (build_context.metrics.os != TargetOs_darwin) { // allow on doc generation (e.g. Metal stuff) - if (!build_context.command_kind == Command_doc && !builtin_name.command_kind == Command_check) { + if (build_context.command_kind != Command_doc && build_context.command_kind != Command_check) { error(call, "'%.*s' only works on darwin", LIT(builtin_name)); } } -- cgit v1.2.3