gingerBill 3 years ago
parent
commit
459ea5f4f6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/check_type.cpp

+ 1 - 1
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]));
 		}