projects
/
ses.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d215ccb
)
tmp
author
yu.dongliang
<18588496441@163.com>
Thu, 13 Jul 2023 07:24:40 +0000
(15:24 +0800)
committer
yu.dongliang
<18588496441@163.com>
Thu, 13 Jul 2023 07:24:40 +0000
(15:24 +0800)
ses_layout.c
patch
|
blob
|
blame
|
history
diff --git
a/ses_layout.c
b/ses_layout.c
index f8aed0998454f97a6cc3b6c8061a45422654362d..fd1c468d55ba098dcea56a5651a9ca94014623ee 100644
(file)
--- a/
ses_layout.c
+++ b/
ses_layout.c
@@
-169,12
+169,15
@@
int ses_lines_same_components(ScfEfunction* f)
ec = NULL;
- for (i = 0; i < f->n_elines
- 1
; i++) {
+ for (i = 0; i < f->n_elines; i++) {
el0 = f->elines[i];
- for (j =
i + 1
; j < f->n_elines; j++) {
+ for (j =
0
; j < f->n_elines; j++) {
el1 = f->elines[j];
+ if (el0 == el1)
+ continue;
+
k0 = 0;
k1 = 0;