Skip to content

Commit df6d461

Browse files
committed
Workaround broken GCC va_args on arm64-darwin
mp_printf is called with uint16_t which is then accessed with va_args as 8-byte size_t. My understanding of C is that this is legal but with GCC the returned value is corrupted.
1 parent a543a60 commit df6d461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/obj.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void mp_obj_print_helper(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t
119119
if (type->print != NULL) {
120120
type->print((mp_print_t *)print, o_in, kind);
121121
} else {
122-
mp_printf(print, "<%q>", type->name);
122+
mp_printf(print, "<%q>", (qstr)type->name);
123123
}
124124
}
125125

0 commit comments

Comments
 (0)