ses_pins_same_line()
authoryu.dongliang <18588496441@163.com>
Fri, 7 Jul 2023 07:12:10 +0000 (15:12 +0800)
committeryu.dongliang <18588496441@163.com>
Fri, 7 Jul 2023 07:12:10 +0000 (15:12 +0800)
ses_layout.c

index a762a21f358ee1aa65b9ae47a21e5f06c001e699..630972280fd7db1aa77fc60ec4e872421b6247cd 100644 (file)
@@ -57,7 +57,7 @@ int ses_pins_same_line(ScfEfunction* f, scf_vector_t* lines)
 
                                m = 0;
                                n = 0;
-                               while (m < vec->size && n < p->n_tos - 1) {
+                               while (m < vec->size && n + 1 < p->n_tos) {
                                        p2   = vec->data[m];
 
                                        if (p2->cid < p->tos[n])