summaryrefslogtreecommitdiff
path: root/py/modgc.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-07-31 13:47:06 +0000
committerDamien George <damien.p.george@gmail.com>2014-07-31 13:47:06 +0000
commit8cc2018d47bc15a1b10295965fc0ccd27c0dcbba (patch)
tree5e8ba4bed5de1f1973203b9cff2c8aab78b419fc /py/modgc.c
parentc9aa58e6381018cca2513e3468363af0b5442d1f (diff)
parentbb4c6f35c627ab3487cdd6bafb4588cc633cd6a4 (diff)
Merge branch 'master' of https://github.com/micropython/micropython
Diffstat (limited to 'py/modgc.c')
-rw-r--r--py/modgc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/modgc.c b/py/modgc.c
index 045563cd9..5fed2d886 100644
--- a/py/modgc.c
+++ b/py/modgc.c
@@ -42,7 +42,7 @@ extern uint gc_collected;
STATIC mp_obj_t py_gc_collect(void) {
gc_collect();
#if MICROPY_PY_GC_COLLECT_RETVAL
- return MP_OBJ_NEW_SMALL_INT((mp_uint_t)gc_collected);
+ return MP_OBJ_NEW_SMALL_INT(gc_collected);
#else
return mp_const_none;
#endif
@@ -64,14 +64,14 @@ MP_DEFINE_CONST_FUN_OBJ_0(gc_enable_obj, gc_enable);
STATIC mp_obj_t gc_mem_free(void) {
gc_info_t info;
gc_info(&info);
- return MP_OBJ_NEW_SMALL_INT((mp_uint_t)info.free);
+ return MP_OBJ_NEW_SMALL_INT(info.free);
}
MP_DEFINE_CONST_FUN_OBJ_0(gc_mem_free_obj, gc_mem_free);
STATIC mp_obj_t gc_mem_alloc(void) {
gc_info_t info;
gc_info(&info);
- return MP_OBJ_NEW_SMALL_INT((mp_uint_t)info.used);
+ return MP_OBJ_NEW_SMALL_INT(info.used);
}
MP_DEFINE_CONST_FUN_OBJ_0(gc_mem_alloc_obj, gc_mem_alloc);