summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
Diffstat (limited to 'mi')
-rw-r--r--mi/match.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/mi/match.c b/mi/match.c
index 1d69eda..a6f585c 100644
--- a/mi/match.c
+++ b/mi/match.c
@@ -906,7 +906,14 @@ clearemit(Dtree *dt)
static int
capeq(Node *a, Node *b)
{
- return 1;
+ Node *pa, *pb, *va, *vb;
+
+ pa = a->expr.args[0];
+ pb = b->expr.args[0];
+ va = a->expr.args[1];
+ vb = b->expr.args[1];
+
+ return decltype(decls[pa->expr.did]) == decltype(decls[pb->expr.did]) && loadeq(va, vb);
}
Dtree *