Merge pull request #293 from MopedSnigelSoppa/v2.0

Fixes: warning: ISO C forbids empty initializer braces before C23
This commit is contained in:
BLUELOVETH 2024-07-31 18:00:23 +08:00 committed by GitHub
commit ab3a9b7584
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -906,7 +906,7 @@ pk_FrameResult pk_VM__run_top_frame(pk_VM* self) {
c11__unreachedable();
__ERROR:
pk_print_stack(self, frame, (Bytecode){});
pk_print_stack(self, frame, (Bytecode){0});
py_BaseException__set_lineno(&self->curr_exception, Frame__lineno(frame), frame->co);
__ERROR_RE_RAISE:
do {} while(0);

View File

@ -356,7 +356,7 @@ static bool
}
pk_FrameResult pk_VM__vectorcall(pk_VM* self, uint16_t argc, uint16_t kwargc, bool opcall) {
pk_print_stack(self, self->top_frame, (Bytecode){});
pk_print_stack(self, self->top_frame, (Bytecode){0});
py_Ref p1 = self->stack.sp - kwargc * 2;
py_Ref p0 = p1 - argc - 2;