Skip to content

Commit 8ead13c

Browse files
committed
fix real bug
1 parent 062b43e commit 8ead13c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

manager/non-build.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ antlrcpp::Any manager::visitForeachGroupStmt(TParser::ForeachGroupStmtContext *c
135135
auto &li = _lists[c];
136136
if (li.items.empty()) return {};
137137

138+
if (ii.top() == li.items.size()) goto pop;
139+
138140
_current->ass[c] = &li.items[ii.top()];
139141
if (ii.size() == ids.size()) {
140142
if (_debug) {
@@ -157,6 +159,7 @@ antlrcpp::Any manager::visitForeachGroupStmt(TParser::ForeachGroupStmtContext *c
157159
}
158160

159161
if (ii.top() == li.items.size()) {
162+
pop:
160163
ii.pop();
161164
if (ii.empty())
162165
break;

0 commit comments

Comments
 (0)