DRCtech.c:4141:21: warning: suggest parentheses around comparison in operand of '=='

the expression (a == b == 1) works out like:

a, b = result (XNOR)
0, 0 = 1
0, 1 = 0
1, 0 = 0
1, 1 = 1

GCC14 -Wall cleanup series [-Wparentheses]
This commit is contained in:
Darryl L. Miles 2024-10-04 17:29:12 +01:00 committed by Tim Edwards
parent 04bc9032b9
commit c1aeaa9be5
1 changed files with 1 additions and 1 deletions

View File

@ -4138,7 +4138,7 @@ DRCTechScale(scalen, scaled)
int scalegcf;
if (DRCCurStyle == NULL) return;
else if (scalen == scaled == 1) return;
else if (scalen == scaled) return;
/* Revert DRC rules to original (unscaled) values */
drcScaleUp(DRCCurStyle, DRCCurStyle->DRCScaleFactorN);