From fc498874f1ff712e0405d6194f5c81ad20bc42fe Mon Sep 17 00:00:00 2001 From: IhorNehrutsa <70886343+IhorNehrutsa@users.noreply.github.com> Date: Fri, 21 Jul 2023 15:56:13 +0300 Subject: [PATCH] Merge remote-tracking branch 'upstream/master' into mp_obj_get_ll_int --- py/obj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/obj.c b/py/obj.c index e487ac69687b2..6991319407506 100644 --- a/py/obj.c +++ b/py/obj.c @@ -343,7 +343,7 @@ int64_t mp_obj_get_ll_int(mp_obj_t arg_in) { return 1; } else if (mp_obj_is_small_int(arg_in)) { return MP_OBJ_SMALL_INT_VALUE(arg_in); - } else if (mp_obj_is_type(arg_in, &mp_type_int)) { + } else if (mp_obj_is_exact_type(arg_in, &mp_type_int)) { #if MICROPY_LONGINT_IMPL == MICROPY_LONGINT_IMPL_LONGLONG mp_obj_int_t *arg = arg_in; return arg->val;