From 14d83801f5fdf18b42b8886e157971f39d7fc2ef Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Sat, 11 Nov 2023 15:23:26 +0800 Subject: [PATCH] __ses_de_cross() --- ses_layout.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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++) { -- 2.25.1