diff options
author | Damien George <damien.p.george@gmail.com> | 2014-07-31 13:47:06 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-07-31 13:47:06 +0000 |
commit | 8cc2018d47bc15a1b10295965fc0ccd27c0dcbba (patch) | |
tree | 5e8ba4bed5de1f1973203b9cff2c8aab78b419fc /py/modmicropython.c | |
parent | c9aa58e6381018cca2513e3468363af0b5442d1f (diff) | |
parent | bb4c6f35c627ab3487cdd6bafb4588cc633cd6a4 (diff) | |
download | micropython-8cc2018d47bc15a1b10295965fc0ccd27c0dcbba.tar.gz micropython-8cc2018d47bc15a1b10295965fc0ccd27c0dcbba.zip |
Merge branch 'master' of https://github.com/micropython/micropython
Diffstat (limited to 'py/modmicropython.c')
-rw-r--r-- | py/modmicropython.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/modmicropython.c b/py/modmicropython.c index 78beb88afa..87bab0a33e 100644 --- a/py/modmicropython.c +++ b/py/modmicropython.c @@ -35,15 +35,15 @@ #if MICROPY_MEM_STATS STATIC mp_obj_t mp_micropython_mem_total() { - return MP_OBJ_NEW_SMALL_INT((mp_int_t)m_get_total_bytes_allocated()); + return MP_OBJ_NEW_SMALL_INT(m_get_total_bytes_allocated()); } STATIC mp_obj_t mp_micropython_mem_current() { - return MP_OBJ_NEW_SMALL_INT((mp_int_t)m_get_current_bytes_allocated()); + return MP_OBJ_NEW_SMALL_INT(m_get_current_bytes_allocated()); } STATIC mp_obj_t mp_micropython_mem_peak() { - return MP_OBJ_NEW_SMALL_INT((mp_int_t)m_get_peak_bytes_allocated()); + return MP_OBJ_NEW_SMALL_INT(m_get_peak_bytes_allocated()); } STATIC MP_DEFINE_CONST_FUN_OBJ_0(mp_micropython_mem_total_obj, mp_micropython_mem_total); |