diff options
| author | gingerBill <bill@gingerbill.org> | 2022-02-16 16:05:28 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-02-16 16:05:28 +0000 |
| commit | 459ea5f4f6bbd30b02eacb330d2e6c72392c69a6 (patch) | |
| tree | af0445510040f3df78bce8b0f028088bcd168a04 /src | |
| parent | db6bd9b358f17c0259ff5fe6411ce93407613338 (diff) | |
Fix typo
Diffstat (limited to 'src')
| -rw-r--r-- | src/check_type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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])); } |