aboutsummaryrefslogtreecommitdiff
path: root/py/objint_mpz.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-04-22 23:17:34 +0100
committerDamien George <damien.p.george@gmail.com>2015-04-22 23:17:34 +0100
commit5e9810396f21698718eb26a3d4125bfeeb2f8859 (patch)
tree7f60098483aeec630112042d58cf5e2b0cf53159 /py/objint_mpz.c
parentf66ee4dfd70608461cd35c2d91d217337193f547 (diff)
py/objint_mpz.c: Make int_from_uint actually return uint.
Diffstat (limited to 'py/objint_mpz.c')
-rw-r--r--py/objint_mpz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objint_mpz.c b/py/objint_mpz.c
index be917f4a7..2746f4dff 100644
--- a/py/objint_mpz.c
+++ b/py/objint_mpz.c
@@ -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