diff options
author | Damien George <damien.p.george@gmail.com> | 2015-02-15 13:17:11 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-02-15 13:17:11 +0000 |
commit | e5039c6ff887dfbee84e7853defda2b18722e24c (patch) | |
tree | e721f146212c7bfc122722504b030fbd8730adb6 /py/modmicropython.c | |
parent | f80f1a70777dd84171af02200b77033a08fba28a (diff) | |
download | micropython-e5039c6ff887dfbee84e7853defda2b18722e24c.tar.gz micropython-e5039c6ff887dfbee84e7853defda2b18722e24c.zip |
py: Use TextIOWrapper only if PY_IO_FILEIO def'd; cast size_t for print.
Diffstat (limited to 'py/modmicropython.c')
-rw-r--r-- | py/modmicropython.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/modmicropython.c b/py/modmicropython.c index edd1375796..1ed0936ce3 100644 --- a/py/modmicropython.c +++ b/py/modmicropython.c @@ -57,7 +57,7 @@ mp_obj_t mp_micropython_mem_info(mp_uint_t n_args, const mp_obj_t *args) { (void)args; #if MICROPY_MEM_STATS printf("mem: total=" UINT_FMT ", current=" UINT_FMT ", peak=" UINT_FMT "\n", - m_get_total_bytes_allocated(), m_get_current_bytes_allocated(), m_get_peak_bytes_allocated()); + (mp_uint_t)m_get_total_bytes_allocated(), (mp_uint_t)m_get_current_bytes_allocated(), (mp_uint_t)m_get_peak_bytes_allocated()); #endif #if MICROPY_STACK_CHECK printf("stack: " UINT_FMT " out of " INT_FMT "\n", mp_stack_usage(), MP_STATE_VM(stack_limit)); |