Skip to content

Commit d4b2c71

Browse files
committed
fixup! runtime: Fix printing failed allocation amounts.
1 parent c66cddc commit d4b2c71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/runtime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ MP_NORETURN void m_malloc_fail(size_t num_bytes) {
16911691
}
16921692
#endif
16931693
mp_raise_msg_varg(&mp_type_MemoryError,
1694-
MP_ERROR_TEXT("memory allocation failed, allocating " SIZE_FMT " bytes"), (mp_uint_t)num_bytes);
1694+
MP_ERROR_TEXT("memory allocation failed, allocating " SIZE_FMT " bytes"), num_bytes);
16951695
}
16961696

16971697
#if MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_NONE

0 commit comments

Comments
 (0)