shithub: mc

Download patch

ref: 58749a958bd44442d7d004efc1390e8f0ec43d46
parent: 15ad5bac3dd1a18be6e632afa73f5ac12b4a5ec1
author: Mura Li <mura_li@castech.com.tw>
date: Wed Apr 22 07:05:41 EDT 2020

Simplify equality computation

--- a/mi/match.c
+++ b/mi/match.c
@@ -913,7 +913,7 @@
 	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 *