mirror of
https://github.com/pocketpy/pocketpy
synced 2025-12-07 10:40:16 +00:00
Update ceval.h
This commit is contained in:
parent
1578d66569
commit
5b9a258b60
@ -278,8 +278,8 @@ PyVar VM::run_frame(Frame* frame){
|
|||||||
PyVar stop = frame->pop_value(this);
|
PyVar stop = frame->pop_value(this);
|
||||||
PyVar start = frame->pop_value(this);
|
PyVar start = frame->pop_value(this);
|
||||||
pkpy::Slice s;
|
pkpy::Slice s;
|
||||||
if(start != None) {check_type(start, tp_int); s.start = (int)PyInt_AS_C(start);}
|
if(start != None) { s.start = (int)PyInt_AS_C(start);}
|
||||||
if(stop != None) {check_type(stop, tp_int); s.stop = (int)PyInt_AS_C(stop);}
|
if(stop != None) { s.stop = (int)PyInt_AS_C(stop);}
|
||||||
frame->push(PySlice(s));
|
frame->push(PySlice(s));
|
||||||
} continue;
|
} continue;
|
||||||
case OP_IMPORT_NAME: {
|
case OP_IMPORT_NAME: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user