Correct & has lower precedence than parentheses warnings.

CmdRS.c:1269:22: warning: & has lower precedence than ==; == will be evaluated first [-Wparentheses]
DRCtech.c:2573:16: warning: & has lower precedence than !=; != will be evaluated first [-Wparentheses]
This commit is contained in:
Brad Smith 2021-12-30 04:35:03 -05:00
parent cf28ad6cf9
commit 10fa302bba
2 changed files with 2 additions and 2 deletions

View File

@ -1266,7 +1266,7 @@ Okay:
if ((windowMask & ~xMask) != 0) {
window = CmdGetRootPoint ((Point *) NULL, (Rect *) NULL);
xMask = ((DBWclientRec *)window->w_clientData)->dbw_bitmask;
if (windowMask & xMask == 0) {
if ((windowMask & xMask) == 0) {
TxError("Box present in multiple windows; use the"
"cursor\nto select the one you want\n");
return;

View File

@ -2570,7 +2570,7 @@ drcEdge(argc, argv)
/* For fastest DRC, checkPlane and plane should be */
/* the same, if possible. */
if (pset & pMaskM != 0)
if ((pset & pMaskM) != 0)
{
plane = LowestMaskBit(pset & pMaskM);
checkPlane = plane;