summaryrefslogtreecommitdiff
path: root/parse/node.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-01-06 13:29:51 -0800
committerOri Bernstein <ori@eigenstate.org>2015-01-06 13:29:51 -0800
commitc96b770a0aa93c1e7b99e5874808af85ddacc6a7 (patch)
treed60d4652014bc44186663f7afaea3338281124ae /parse/node.c
parent468265b7b2719d783afc46ea5aa7c9ffa3142970 (diff)
downloadmc-c96b770a0aa93c1e7b99e5874808af85ddacc6a7.tar.gz
Improve error messages.
This involved lots of table changes.
Diffstat (limited to 'parse/node.c')
-rw-r--r--parse/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/node.c b/parse/node.c
index 3a598ce..4bca3a6 100644
--- a/parse/node.c
+++ b/parse/node.c
@@ -374,7 +374,7 @@ Type *nodetype(Node *n)
case Ndecl: return n->decl.type; break;
case Nexpr: return n->expr.type; break;
case Nlit: return n->lit.type; break;
- default: die("Node %s has no type", nodestr(n->type)); break;
+ default: die("Node %s has no type", nodestr[n->type]); break;
}
return NULL;
}