ref: ffc2297f66e44ac9a58fa417f2bf9600ea47faf0
parent: 4aa48404e5dcac05e6b04f36da996a6bea169722
author: Michael Forney <mforney@mforney.org>
date: Sat Jan 23 13:28:08 EST 2021
[9front] cc: fix comparison warning with constant LHS This prevents an incorrect warning for a comparison such as `0 < x`, where x is an unsigned type. Previously, this would get normalized as `x >= 0` rather than `x > 0` when checking the comparison.
--- a/sys/src/cmd/cc/com.c
+++ b/sys/src/cmd/cc/com.c
@@ -1392,7 +1392,7 @@
if(reverse){
r = n->left;
l = n->right;
- op = comrel[relindex(n->op)];
+ op = invrel[relindex(n->op)];
}else{
l = n->left;
r = n->right;
--
⑨