Skip to content

Commit 79ce664

Browse files
committed
py/runtime: When init'ing kbd intr exc, use tuple ptr instead of object.
1 parent ee86de1 commit 79ce664

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/runtime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void mp_init(void) {
7878
MP_STATE_VM(mp_kbd_exception).traceback_alloc = 0;
7979
MP_STATE_VM(mp_kbd_exception).traceback_len = 0;
8080
MP_STATE_VM(mp_kbd_exception).traceback_data = NULL;
81-
MP_STATE_VM(mp_kbd_exception).args = mp_const_empty_tuple;
81+
MP_STATE_VM(mp_kbd_exception).args = (mp_obj_tuple_t*)&mp_const_empty_tuple_obj;
8282
#endif
8383

8484
// call port specific initialization if any

0 commit comments

Comments
 (0)