From c9845a0685e4ab5fad01e9d561feac73d13f9959 Mon Sep 17 00:00:00 2001
From: Damien George <damien.p.george@gmail.com>
Date: Mon, 11 Jan 2016 16:30:58 +0000
Subject: [PATCH] unix: Allow to build coverage build with OBJ_REPR_D.

---
 unix/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/unix/main.c b/unix/main.c
index 9f787595d..054dd6acb 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
 
-- 
GitLab