Corrected node merging, which failed to copy the EF_TOP_PORT flag

bit into the merged node.  Corrected reference to efNodeHashTable
to the more proper call to EFHNLook().
This commit is contained in:
Tim Edwards 2018-11-15 15:55:41 -05:00
parent cf9f9784ed
commit 395fb1a8d6
2 changed files with 4 additions and 3 deletions

View File

@ -1299,12 +1299,11 @@ char *nodeSpiceHierName(hc, hname)
HierName *hname;
{
EFNodeName *nn;
HashEntry *he;
HashEntry *he, *he2;
EFNode *node;
Def *def = hc->hc_use->use_def;
// he = HashLookOnly(&def->def_nodes, EFHNToStr(hname));
he = HashLookOnly(&efNodeHashTable, (char *)hname);
he = EFHNLook(hname, NULL, "ext2spice");
if (he == NULL) return "error";
nn = (EFNodeName *) HashGetValue(he);

View File

@ -1632,6 +1632,8 @@ efNodeMerge(node1, node2)
*/
if (node2->efnode_flags & EF_PORT)
node1->efnode_flags |= EF_PORT;
if (node2->efnode_flags & EF_TOP_PORT)
node1->efnode_flags |= EF_TOP_PORT;
/*
* If node2 has the EF_SUBS_NODE flag set, then copy the port