mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 12:00:18 +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 start = frame->pop_value(this);
|
||||
pkpy::Slice s;
|
||||
if(start != None) {check_type(start, tp_int); s.start = (int)PyInt_AS_C(start);}
|
||||
if(stop != None) {check_type(stop, tp_int); s.stop = (int)PyInt_AS_C(stop);}
|
||||
if(start != None) { s.start = (int)PyInt_AS_C(start);}
|
||||
if(stop != None) { s.stop = (int)PyInt_AS_C(stop);}
|
||||
frame->push(PySlice(s));
|
||||
} continue;
|
||||
case OP_IMPORT_NAME: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user