summaryrefslogtreecommitdiff
path: root/parse/infer.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse/infer.c')
-rw-r--r--parse/infer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse/infer.c b/parse/infer.c
index 693d074..de5e5d5 100644
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -1638,7 +1638,9 @@ inferexpr(Node **np, Type *ret, int *sawret)
htput(seqbase, t, b);
unify(n, type(args[0]), t);
constrain(n, type(args[1]), traittab[Tcint]);
+ constrain(n, type(args[1]), traittab[Tcnum]);
constrain(n, type(args[2]), traittab[Tcint]);
+ constrain(n, type(args[2]), traittab[Tcnum]);
settype(n, mktyslice(n->loc, b));
break;