Skip to content

Commit 380f147

Browse files
committed
modgc: Real 64-bit cleanness.
1 parent a3ef808 commit 380f147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/modgc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ extern uint gc_collected;
4242
STATIC mp_obj_t py_gc_collect(void) {
4343
gc_collect();
4444
#if MICROPY_PY_GC_COLLECT_RETVAL
45-
return MP_OBJ_NEW_SMALL_INT((uint)gc_collected);
45+
return MP_OBJ_NEW_SMALL_INT((machine_uint_t)gc_collected);
4646
#else
4747
return mp_const_none;
4848
#endif

0 commit comments

Comments
 (0)