mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 19:40:18 +00:00
Update ceval.c
This commit is contained in:
parent
62491dd99a
commit
226febea82
@ -1191,6 +1191,7 @@ __NEXT_STEP:
|
|||||||
py_Ref spec = c11__at(py_TValue, &frame->co->consts, byte.arg);
|
py_Ref spec = c11__at(py_TValue, &frame->co->consts, byte.arg);
|
||||||
bool ok = pk_format_object(self, TOP(), py_tosv(spec));
|
bool ok = pk_format_object(self, TOP(), py_tosv(spec));
|
||||||
if(!ok) goto __ERROR;
|
if(!ok) goto __ERROR;
|
||||||
|
py_assign(TOP(), py_retval());
|
||||||
DISPATCH();
|
DISPATCH();
|
||||||
}
|
}
|
||||||
default: c11__unreachable();
|
default: c11__unreachable();
|
||||||
@ -1439,7 +1440,7 @@ bool pk_format_object(VM* self, py_Ref val, c11_sv spec) {
|
|||||||
|
|
||||||
c11_string__delete(body);
|
c11_string__delete(body);
|
||||||
// inplace update
|
// inplace update
|
||||||
c11_sbuf__py_submit(&buf, val);
|
c11_sbuf__py_submit(&buf, py_retval());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user