[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:
parent
a8834acf73
commit
e8b8cec9c7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue