Fixes: warning: ISO C forbids empty initializer braces before C23 [-Wpedantic]

This commit is contained in:
Fredrik Ovaska 2024-07-31 11:38:42 +02:00
parent 9162e84ae6
commit d835ea984e
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;