nest, drop else {} due to break
This commit is contained in:
parent
e41db66b6c
commit
9dc52933f8
|
|
@ -451,10 +451,8 @@ doit(struct line *deck) {
|
|||
if (ciprefix(sbend, c->li_line)) { /* found a .ends */
|
||||
if (!--nest)
|
||||
break; /* nest = 0 means we have balanced .subckt and .ends */
|
||||
else {
|
||||
lcc = c; /* (lcc points to the position of the .ends) */
|
||||
continue; /* then continue looping */
|
||||
}
|
||||
} else if (ciprefix(start, c->li_line)) /* if .subckt, increment nesting */
|
||||
nest++;
|
||||
lcc = c; /* lcc points to current pos of c */
|
||||
|
|
|
|||
Loading…
Reference in New Issue