From: yu.dongliang <18588496441@163.com> Date: Sat, 14 Oct 2023 07:33:17 +0000 (+0800) Subject: fix: __dfs_path() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=1e4e65173a1bc4551af2bb21ea0d8670f1057e08;p=ses.git fix: __dfs_path() --- diff --git a/ses_step_topo.c b/ses_step_topo.c index d54c146..fea2e68 100644 --- a/ses_step_topo.c +++ b/ses_step_topo.c @@ -117,13 +117,15 @@ int __dfs_path(ScfEfunction* f, ScfEcomponent* rc, ScfEpin* rp, scf_vector_t* __ p->vflag = 0; } - if (SCF_EDA_Status_OFF == ret || SCF_EDA_Path_OFF == ret) { - if (*ppath) - scf_vector_del((*ppath)->pins, np); + if (*ppath) { + scf_vector_del((*ppath)->pins, np); - if (SCF_EDA_Path_OFF == ret) - np->vflag = 0; + if (SCF_EDA_Status_OFF != ret) + ret = SCF_EDA_Path_OFF; } + + if (SCF_EDA_Path_OFF == ret) + np->vflag = 0; } if (SCF_EDA_Status_OFF == ret || SCF_EDA_Path_OFF == ret) {