We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1c57ea commit 978d2e5Copy full SHA for 978d2e5
1 file changed
py/runtime.c
@@ -1351,7 +1351,7 @@ mp_obj_t mp_parse_compile_execute(mp_lexer_t *lex, mp_parse_input_kind_t parse_i
1351
#endif // MICROPY_ENABLE_COMPILER
1352
1353
void *m_malloc_fail(size_t num_bytes) {
1354
- DEBUG_printf("memory allocation failed, allocating " UINT_FMT " bytes\n", num_bytes);
+ DEBUG_printf("memory allocation failed, allocating %u bytes\n", (uint)num_bytes);
1355
if (0) {
1356
// dummy
1357
#if MICROPY_ENABLE_GC
@@ -1361,7 +1361,7 @@ void *m_malloc_fail(size_t num_bytes) {
1361
#endif
1362
} else {
1363
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_MemoryError,
1364
- "memory allocation failed, allocating " UINT_FMT " bytes", num_bytes));
+ "memory allocation failed, allocating %u bytes", (uint)num_bytes));
1365
}
1366
1367
0 commit comments