aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/routines/call_import.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routines/call_import.c b/src/routines/call_import.c
index 63a736e..6a94ff0 100644
--- a/src/routines/call_import.c
+++ b/src/routines/call_import.c
@@ -403,7 +403,7 @@ static enum nw_state tell(struct nw_interp *const i)
if (n)
return n;
- i->next = seek_param_types;
+ i->next = ci->fn.param_count ? seek_param_types : call;
return NW_AGAIN;
}
@@ -465,7 +465,7 @@ static enum nw_state prepare(struct nw_interp *const i)
*pci = ci;
pci->fn = fn;
pci->imp = imp;
- i->next = pci->fn.param_count ? tell : call;
+ i->next = tell;
}
return NW_AGAIN;