From 1e4e65173a1bc4551af2bb21ea0d8670f1057e08 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Sat, 14 Oct 2023 15:33:17 +0800 Subject: [PATCH] fix: __dfs_path() --- ses_step_topo.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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) { -- 2.25.1