Update ceval.h

This commit is contained in:
blueloveTH 2023-02-25 15:23:17 +08:00
parent 1578d66569
commit 5b9a258b60

View File

@ -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: {