summaryrefslogtreecommitdiff
path: root/parse/infer.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-01-14 22:59:26 -0800
committerOri Bernstein <ori@eigenstate.org>2018-01-14 22:59:26 -0800
commit9b6e7069755a73fb43acd86fd76aafb2178a6f0c (patch)
tree57e8fa355fe7507862f80c542672a202b751ec77 /parse/infer.c
parent7ec5af48e7c7fa40c494b5572fcfa04d3a998cba (diff)
downloadmc-9b6e7069755a73fb43acd86fd76aafb2178a6f0c.tar.gz
Pass in the context node to our error printing..
Diffstat (limited to 'parse/infer.c')
-rw-r--r--parse/infer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/infer.c b/parse/infer.c
index daa071e..34bb69a 100644
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -117,7 +117,7 @@ nodetystr(Node *n)
t = NULL;
if (n->type == Nexpr && exprtype(n) != NULL)
- t = tyfix(NULL, exprtype(n), 1);
+ t = tyfix(n, exprtype(n), 1);
else if (n->type == Ndecl && decltype(n) != NULL)
t = tyfix(n, decltype(n), 1);