summaryrefslogtreecommitdiff
path: root/6/simp.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 /6/simp.c
parent468265b7b2719d783afc46ea5aa7c9ffa3142970 (diff)
downloadmc-c96b770a0aa93c1e7b99e5874808af85ddacc6a7.tar.gz
Improve error messages.
This involved lots of table changes.
Diffstat (limited to '6/simp.c')
-rw-r--r--6/simp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/6/simp.c b/6/simp.c
index 7e62fec..b25f45b 100644
--- a/6/simp.c
+++ b/6/simp.c
@@ -277,7 +277,7 @@ static void append(Simp *s, Node *n)
static int ispure(Node *n)
{
- return ispureop[exprop(n)];
+ return opispure[exprop(n)];
}
static int isconstfn(Node *s)
@@ -822,7 +822,7 @@ static Node *lval(Simp *s, Node *n)
case Oderef: r = deref(rval(s, args[0], NULL), NULL); break;
case Omemb: r = deref(membaddr(s, n), NULL); break;
default:
- fatal(n, "%s cannot be an lvalue", opstr(exprop(n)));
+ fatal(n, "%s cannot be an lvalue", opstr[exprop(n)]);
break;
}
return r;