Skip to content

Commit 9dc559b

Browse files
committed
uasyncio: fix definition of ticks again
supervisor_ticks_ms is ALREADY a small int, so passing it to MP_OBJ_SMALL_INT again messes things up. I don't know why this passed muster with the C type system, but oh well.
1 parent ae2bbbb commit 9dc559b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extmod/moduasyncio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ STATIC mp_obj_t ticks(void) {
8383
// shared-bindings/supervisor/__init__.c). We assume/require that
8484
// supervisor.ticks_ms is picked as the ticks implementation under
8585
// CircuitPython for the Python-coded bits of asyncio.
86-
#define ticks() MP_OBJ_NEW_SMALL_INT(supervisor_ticks_ms())
86+
#define ticks() supervisor_ticks_ms()
8787
#endif
8888

8989
STATIC mp_int_t ticks_diff(mp_obj_t t1_in, mp_obj_t t0_in) {

0 commit comments

Comments
 (0)