__ses_de_cross()
authoryu.dongliang <18588496441@163.com>
Sat, 11 Nov 2023 07:23:26 +0000 (15:23 +0800)
committeryu.dongliang <18588496441@163.com>
Sat, 11 Nov 2023 07:24:38 +0000 (15:24 +0800)
ses_layout.c

index 43853acaf916fc51c4335525fecb8bf04fb25639..4c17f1f863e144bdfa9a39684243d5c7ee6cf966 100644 (file)
@@ -1180,16 +1180,18 @@ static int __ses_de_cross(ScfEfunction* f, int d)
                        scf_loge("**********\n");
                }
 
+               int n = 0;
                for (i = 0; i < graph->size; i++) {
                        v         = graph->data[i];
 
                        if (v->color < 0) {
-                               scf_loge("j: %ld, i: %ld, c%ld->color: %ld\n", j, i, c->id, v->color);
-                               break;
+                               c = v->data;
+                               n++;
+                               scf_loge("j: %ld, c%ld->color: %ld\n", j, c->id, v->color);
                        }
                }
 
-               if (i < graph->size)
+               if (n > 0)
                        break;
 
                for (i = 0; i < graph->size; i++) {