summaryrefslogtreecommitdiff
path: root/6/simp.c
diff options
context:
space:
mode:
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;