From 226febea82c6f69c68887bc0ef9158c21be52eae Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Wed, 17 Sep 2025 14:16:48 +0800 Subject: [PATCH] Update ceval.c --- src/interpreter/ceval.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/interpreter/ceval.c b/src/interpreter/ceval.c index ee00febf..9e024796 100644 --- a/src/interpreter/ceval.c +++ b/src/interpreter/ceval.c @@ -1191,6 +1191,7 @@ __NEXT_STEP: py_Ref spec = c11__at(py_TValue, &frame->co->consts, byte.arg); bool ok = pk_format_object(self, TOP(), py_tosv(spec)); if(!ok) goto __ERROR; + py_assign(TOP(), py_retval()); DISPATCH(); } default: c11__unreachable(); @@ -1439,7 +1440,7 @@ bool pk_format_object(VM* self, py_Ref val, c11_sv spec) { c11_string__delete(body); // inplace update - c11_sbuf__py_submit(&buf, val); + c11_sbuf__py_submit(&buf, py_retval()); return true; }