fix: ses_layout.c
authoryu.dongliang <18588496441@163.com>
Wed, 18 Oct 2023 10:31:48 +0000 (18:31 +0800)
committeryu.dongliang <18588496441@163.com>
Wed, 18 Oct 2023 10:31:48 +0000 (18:31 +0800)
ses_layout.c

index 46403dc5cb54189350d13333d6250428e129b37d..d63e3a39407f30b4e5677f035a869c07f2d08ca4 100644 (file)
@@ -186,7 +186,8 @@ next:
 
                                p2 = f->components[p->tos[n]]->pins[p->tos[n + 1]];
 
-                               if (p2->cid > p->cid || p2->id > p->id)
+                               if (p2->cid >  p->cid
+                               || (p2->cid == p->cid && p2->id > p->id))
                                        break;
 
                                el2 = f->elines[p2->lid];