Fixed an error in the DRC rule optimization ("||" used instead of

"|"), pointed out by Jim Everitt.  The error is pretty major, but
because the section of code it affects is just eliminating
unnecessary DRC rules, I believe that the only effect is that the
DRC ruleset ends up using more memory than it needs to.  But, good
to have fixed.
This commit is contained in:
Tim Edwards 2021-08-01 12:04:13 -04:00
parent 08461c9384
commit c776c82445
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
8.3.194
8.3.195

View File

@ -3679,7 +3679,7 @@ drcTechFinalStyle(style)
for (dp = style->DRCRulesTbl[i][j]; dp != NULL; dp = dp->drcc_next)
{
if (dp->drcc_flags & (DRC_NONSTANDARD || DRC_OUTSIDE)) continue;
if (dp->drcc_flags & (DRC_NONSTANDARD | DRC_OUTSIDE)) continue;
if (dp->drcc_flags & DRC_REVERSE)
{
if ((i == TT_SPACE) || TTMaskHasType(&dp->drcc_mask, i)) continue;