aboutsummaryrefslogtreecommitdiff
path: root/py/modgc.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-06-06 03:01:39 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-06-06 03:01:39 +0300
commit380f147d2e39904641e280ab19f8f77daf3c5be3 (patch)
tree91e4502ff6d620ea88429d712a72c8d1e1e6584f /py/modgc.c
parenta3ef8087e87acf38d341cf9f391f91d298c10f01 (diff)
modgc: Real 64-bit cleanness.
Diffstat (limited to 'py/modgc.c')
-rw-r--r--py/modgc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/modgc.c b/py/modgc.c
index fe0f4a7e0..c53eed235 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((uint)gc_collected);
+ return MP_OBJ_NEW_SMALL_INT((machine_uint_t)gc_collected);
#else
return mp_const_none;
#endif