summaryrefslogtreecommitdiff
path: root/parse/infer.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse/infer.c')
-rw-r--r--parse/infer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse/infer.c b/parse/infer.c
index 937f116..3161a7c 100644
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -528,6 +528,7 @@ static Type *littype(Node *n)
case Lstr: t = mktyslice(n->loc, mktype(n->loc, Tybyte)); break;
case Llbl: t = mktyptr(n->loc, mktype(n->loc, Tyvoid)); break;
case Lfunc: t = n->lit.fnval->func.type; break;
+ case Ljtab: t = mktype(n->loc, Tyvoid); break;
}
n->lit.type = t;
}