From 459ea5f4f6bbd30b02eacb330d2e6c72392c69a6 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 16 Feb 2022 16:05:28 +0000 Subject: [PATCH] Fix typo --- src/check_type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/check_type.cpp b/src/check_type.cpp index a11f5234b..976bb7f42 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -1914,7 +1914,7 @@ bool check_procedure_type(CheckerContext *ctx, Type *type, Ast *proc_type_node, switch (cc) { case ProcCC_StdCall: case ProcCC_FastCall: - if (arch != TargetArch_i386 || arch != TargetArch_amd64) { + if (arch != TargetArch_i386 && arch != TargetArch_amd64) { error(proc_type_node, "Invalid procedure calling convention \"%s\" for target architecture, expected either i386 or amd64, got %.*s", proc_calling_convention_strings[cc], LIT(target_arch_names[arch])); }