py/objint_mpz.c: Make int_from_uint actually return uint.

pull/1197/head
Damien George 2015-04-22 23:17:34 +01:00
rodzic f66ee4dfd7
commit 5e9810396f
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -314,7 +314,7 @@ mp_obj_t mp_obj_new_int_from_uint(mp_uint_t value) {
if ((value & (WORD_MSBIT_HIGH | (WORD_MSBIT_HIGH >> 1))) == 0) {
return MP_OBJ_NEW_SMALL_INT(value);
}
return mp_obj_new_int_from_ll(value);
return mp_obj_new_int_from_ull(value);
}
#if MICROPY_PY_BUILTINS_FLOAT