Skip to content

Commit

Permalink
Corrected an error that had previously been corrected in
Browse files Browse the repository at this point in the history
PropertyMatch() but not corrected symmetrically between circuit1
and circuit2;  this left the possibility that "M=1" in one
circuit vs. no "M" entry in the other would still pop up as a
property error, depending on which circuit (layout or schematic)
was listed first.
  • Loading branch information
RTimothyEdwards committed Apr 3, 2024
1 parent 035fef5 commit 3d180f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.272
1.5.273
4 changes: 3 additions & 1 deletion base/netcmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -6211,7 +6211,9 @@ PropertyMatch(struct Element *E1, struct Element *E2,
if (kl1 != NULL)
break; // Property is required
}
else if (vl1->value.ival != 1)
else if ((vl1->type == PROP_INTEGER) && (vl1->value.ival != 1))
break; // Property M != 1 or S != 1 is a mismatch.
else if ((vl1->type == PROP_DOUBLE) && (vl1->value.dval != 1))
break; // Property M != 1 or S != 1 is a mismatch.
}
if (vl1->type != PROP_ENDLIST) {
Expand Down

0 comments on commit 3d180f7

Please sign in to comment.