unix: Allow to build coverage build with OBJ_REPR_D.

This commit is contained in:
Damien George 2016-01-11 16:30:58 +00:00
parent 11b97d7ec5
commit c9845a0685
1 changed files with 1 additions and 1 deletions

View File

@ -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