Skip to content

Commit b509c02

Browse files
committed
Co-authored-by: Irit Katriel <[email protected]>
1 parent 312fd30 commit b509c02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/flowgraph.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,14 +1818,14 @@ optimize_basic_block(PyObject *const_cache, basicblock *bb, PyObject *consts)
18181818
break;
18191819
case BUILD_LIST:
18201820
if (i >= oparg) {
1821-
if (optimize_const_sequence(const_cache, inst-oparg, oparg, consts, BUILD_LIST, LIST_EXTEND)) {
1821+
if (optimize_const_sequence(const_cache, inst-oparg, oparg, consts, BUILD_LIST, LIST_EXTEND) < 0) {
18221822
goto error;
18231823
}
18241824
}
18251825
break;
18261826
case BUILD_SET:
18271827
if (i >= oparg) {
1828-
if (optimize_const_sequence(const_cache, inst-oparg, oparg, consts, BUILD_SET, SET_UPDATE)) {
1828+
if (optimize_const_sequence(const_cache, inst-oparg, oparg, consts, BUILD_SET, SET_UPDATE) < 0) {
18291829
goto error;
18301830
}
18311831
}

0 commit comments

Comments
 (0)