From 380f147d2e39904641e280ab19f8f77daf3c5be3 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 6 Jun 2014 03:01:39 +0300 Subject: [PATCH] modgc: Real 64-bit cleanness. --- py/modgc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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