extmod/moductypes: When dealing with UINT64, use mp_obj_new_int_from_ull().
Since we now have it.
This commit is contained in:
parent
404dae80a9
commit
20f85feecc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue