Implemented the change from pull request #65 from Mitch Bailey

(slightly altered to put the inexpensive flag checks before the
more expensive string match).
This commit is contained in:
Tim Edwards 2022-11-01 13:21:35 -04:00
parent c73d9ec4ff
commit 98e6a4bd8f
1 changed files with 2 additions and 1 deletions

View File

@ -6952,7 +6952,8 @@ int EquivalenceClasses(char *name1, int file1, char *name2, int file2)
/* conflicting names exist, then alter the classhash to make it */
/* unique. In the case of duplicate cells, don't do this. */
if (!(tp->flags & CELL_DUPLICATE) && !(tp2->flags & CELL_DUPLICATE)) {
if (!(tp->flags & CELL_DUPLICATE) && !(tp2->flags & CELL_DUPLICATE) &&
!(*matchfunc)(name1, name2)) {
tpx = LookupCellFile(name1, file2);
if (tpx != NULL) need_new_seed = 1;
tpx = LookupCellFile(name2, file1);