File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/builtins Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -211,11 +211,11 @@ public PList execute(PythonClass cls, Object iterator) {
211
211
array = elements ;
212
212
while (true ) {
213
213
try {
214
- Object value = next .execute (iterator );
214
+ PList value = PList . expect ( next .execute (iterator ) );
215
215
if (i >= elements .length ) {
216
216
elements = Arrays .copyOf (elements , elements .length * 2 );
217
217
}
218
- elements [i ++] = PList . expect ( value ) ;
218
+ elements [i ++] = value ;
219
219
} catch (PException e ) {
220
220
e .expectStopIteration (getCore (), errorProfile );
221
221
break ;
@@ -229,11 +229,11 @@ public PList execute(PythonClass cls, Object iterator) {
229
229
array = elements ;
230
230
while (true ) {
231
231
try {
232
- Object value = next .execute (iterator );
232
+ PTuple value = PTuple . expect ( next .execute (iterator ) );
233
233
if (i >= elements .length ) {
234
234
elements = Arrays .copyOf (elements , elements .length * 2 );
235
235
}
236
- elements [i ++] = PTuple . expect ( value ) ;
236
+ elements [i ++] = value ;
237
237
} catch (PException e ) {
238
238
e .expectStopIteration (getCore (), errorProfile );
239
239
break ;
You can’t perform that action at this time.
0 commit comments