summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMura Li <mura_li@castech.com.tw>2020-04-22 11:05:41 +0000
committerOri Bernstein <ori@eigenstate.org>2020-05-05 20:33:19 -0700
commit58749a958bd44442d7d004efc1390e8f0ec43d46 (patch)
tree0925aa1a09bbcac340fd1832dc3cc6afabd4136e
parent15ad5bac3dd1a18be6e632afa73f5ac12b4a5ec1 (diff)
downloadmc-58749a958bd44442d7d004efc1390e8f0ec43d46.tar.gz
Simplify equality computation
-rw-r--r--mi/match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mi/match.c b/mi/match.c
index a6f585c..ca3f9d0 100644
--- a/mi/match.c
+++ b/mi/match.c
@@ -913,7 +913,7 @@ capeq(Node *a, Node *b)
va = a->expr.args[1];
vb = b->expr.args[1];
- return decltype(decls[pa->expr.did]) == decltype(decls[pb->expr.did]) && loadeq(va, vb);
+ return pa->expr.did == pb->expr.did && loadeq(va, vb);
}
Dtree *