summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--unix/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/main.c b/unix/main.c
index 9f787595d0..054dd6acb6 100644
--- a/unix/main.c
+++ b/unix/main.c
@@ -455,7 +455,7 @@ int main(int argc, char **argv) {
#if defined(MICROPY_UNIX_COVERAGE)
{
MP_DECLARE_CONST_FUN_OBJ(extra_coverage_obj);
- mp_store_global(QSTR_FROM_STR_STATIC("extra_coverage"), (mp_obj_t)&extra_coverage_obj);
+ mp_store_global(QSTR_FROM_STR_STATIC("extra_coverage"), MP_OBJ_FROM_PTR(&extra_coverage_obj));
}
#endif