From e1cda0038718013248b86296d746deeaa0bf9a9e Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 8 Jun 2017 00:41:27 +1000 Subject: [PATCH] py/modsys: Allow to compile with obj-repr D and PY_ATTRTUPLE disabled. --- py/modsys.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py/modsys.c b/py/modsys.c index 5fbcb944c4..b8c427ba87 100644 --- a/py/modsys.c +++ b/py/modsys.c @@ -74,12 +74,12 @@ STATIC MP_DEFINE_ATTRTUPLE( MP_ROM_PTR(&mp_sys_implementation_version_info_obj) ); #else -STATIC const mp_obj_tuple_t mp_sys_implementation_obj = { +STATIC const mp_rom_obj_tuple_t mp_sys_implementation_obj = { {&mp_type_tuple}, 2, { - MP_OBJ_NEW_QSTR(MP_QSTR_micropython), - (mp_obj_t)&mp_sys_implementation_version_info_obj, + MP_ROM_QSTR(MP_QSTR_micropython), + MP_ROM_PTR(&mp_sys_implementation_version_info_obj), } }; #endif