summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'types.c')
-rw-r--r--types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types.c b/types.c
index fa5d60b..54a28ae 100644
--- a/types.c
+++ b/types.c
@@ -1832,7 +1832,7 @@ static Status types_expr(Typer *tr, Expression *e) {
arr_set_lena(&arg_exprs, nparams, tr->allocr);
I16 *order = NULL;
- if (fn_decl) {
+ if (fn_decl && !(fn_decl->flags & FN_EXPR_FOREIGN)) {
if (!call_arg_param_order(fn_decl, &f->type, c->args, e->where, &order)) {
free(order);
return false;