summaryrefslogtreecommitdiff
path: root/py/objint_mpz.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/objint_mpz.c')
-rw-r--r--py/objint_mpz.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/objint_mpz.c b/py/objint_mpz.c
index e9545149f..8078441d6 100644
--- a/py/objint_mpz.c
+++ b/py/objint_mpz.c
@@ -165,6 +165,8 @@ mp_obj_t mp_obj_int_unary_op(mp_unary_op_t op, mp_obj_t o_in) {
mpz_abs_inpl(&self2->mpz, &self->mpz);
return MP_OBJ_FROM_PTR(self2);
}
+ case MP_UNARY_OP_INT_MAYBE:
+ return o_in;
default:
return MP_OBJ_NULL; // op not supported
}