Skip to content

Commit 5e98103

Browse files
committed
py/objint_mpz.c: Make int_from_uint actually return uint.
1 parent f66ee4d commit 5e98103

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/objint_mpz.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ mp_obj_t mp_obj_new_int_from_uint(mp_uint_t value) {
314314
if ((value & (WORD_MSBIT_HIGH | (WORD_MSBIT_HIGH >> 1))) == 0) {
315315
return MP_OBJ_NEW_SMALL_INT(value);
316316
}
317-
return mp_obj_new_int_from_ll(value);
317+
return mp_obj_new_int_from_ull(value);
318318
}
319319

320320
#if MICROPY_PY_BUILTINS_FLOAT

0 commit comments

Comments
 (0)