extmod/moductypes: When dealing with UINT64, use mp_obj_new_int_from_ull().

Since we now have it.
This commit is contained in:
Paul Sokolovsky 2015-10-28 00:21:28 +03:00
parent 404dae80a9
commit 20f85feecc
1 changed files with 1 additions and 0 deletions

View File

@ -329,6 +329,7 @@ STATIC mp_obj_t get_aligned(uint val_type, void *p, mp_int_t index) {
case INT32: case INT32:
return mp_obj_new_int(((int32_t*)p)[index]); return mp_obj_new_int(((int32_t*)p)[index]);
case UINT64: case UINT64:
return mp_obj_new_int_from_ull(((uint64_t*)p)[index]);
case INT64: case INT64:
return mp_obj_new_int_from_ll(((int64_t*)p)[index]); return mp_obj_new_int_from_ll(((int64_t*)p)[index]);
#if MICROPY_PY_BUILTINS_FLOAT #if MICROPY_PY_BUILTINS_FLOAT