From: yu.dongliang <18588496441@163.com> Date: Sat, 11 Nov 2023 07:23:26 +0000 (+0800) Subject: __ses_de_cross() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=14d83801f5fdf18b42b8886e157971f39d7fc2ef;p=ses.git __ses_de_cross() --- diff --git a/ses_layout.c b/ses_layout.c index 43853ac..4c17f1f 100644 --- a/ses_layout.c +++ b/ses_layout.c @@ -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++) {