diff options
Diffstat (limited to 'unix/modjni.c')
-rw-r--r-- | unix/modjni.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/modjni.c b/unix/modjni.c index 0ffcb9969..394623261 100644 --- a/unix/modjni.c +++ b/unix/modjni.c @@ -265,7 +265,7 @@ STATIC mp_obj_t jobject_unary_op(mp_uint_t op, mp_obj_t self_in) { case MP_UNARY_OP_LEN: { jint len = JJ(CallIntMethod, self->obj, List_size_mid); if (op == MP_UNARY_OP_BOOL) { - return MP_BOOL(len != 0); + return mp_obj_new_bool(len != 0); } return MP_OBJ_NEW_SMALL_INT(len); } |