shithub: mc

Download patch

ref: 5927f8f8d3b4ab40d2aacfae4b3cbd593c5e7f01
parent: 37e813c6855bb09b73f4a7679ca2ce146152ee47
author: Mura Li <[email protected]>
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 *