p->n_diodes
authoryu.dongliang <18588496441@163.com>
Mon, 25 Sep 2023 12:39:31 +0000 (20:39 +0800)
committeryu.dongliang <18588496441@163.com>
Mon, 25 Sep 2023 12:39:31 +0000 (20:39 +0800)
ses_step_topo.c

index 980ac09c276a587137c8b493f6ab9f0e80f5c6d2..6d04e6c86b2584687fd35dd2da84ac68c7f37627 100644 (file)
@@ -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;