projects
/
ses.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dae9e54
)
p->n_diodes
author
yu.dongliang
<18588496441@163.com>
Mon, 25 Sep 2023 12:39:31 +0000
(20:39 +0800)
committer
yu.dongliang
<18588496441@163.com>
Mon, 25 Sep 2023 12:39:31 +0000
(20:39 +0800)
ses_step_topo.c
patch
|
blob
|
blame
|
history
diff --git
a/ses_step_topo.c
b/ses_step_topo.c
index 980ac09c276a587137c8b493f6ab9f0e80f5c6d2..6d04e6c86b2584687fd35dd2da84ac68c7f37627 100644
(file)
--- a/
ses_step_topo.c
+++ b/
ses_step_topo.c
@@
-5,6
+5,12
@@
int _ses_path_cmp(const void* v0, const void* v1)
const ses_path_t* p0 = *(const ses_path_t**)v0;
const ses_path_t* p1 = *(const ses_path_t**)v1;
+ if (p0->n_diodes > p1->n_diodes)
+ return -1;
+
+ if (p0->n_diodes < p1->n_diodes)
+ return 1;
+
if (p0->pins->size > p1->pins->size)
return -1;