[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.
This commit is contained in:
Michael Forney 2021-01-23 18:28:08 -08:00
parent a8834acf73
commit e8b8cec9c7

View file

@ -1392,7 +1392,7 @@ compar(Node *n, int reverse)
if(reverse){ if(reverse){
r = n->left; r = n->left;
l = n->right; l = n->right;
op = comrel[relindex(n->op)]; op = invrel[relindex(n->op)];
}else{ }else{
l = n->left; l = n->left;
r = n->right; r = n->right;