Skip to content

Commit 20f85fe

Browse files
committed
extmod/moductypes: When dealing with UINT64, use mp_obj_new_int_from_ull().
Since we now have it.
1 parent 404dae8 commit 20f85fe

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

extmod/moductypes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ STATIC mp_obj_t get_aligned(uint val_type, void *p, mp_int_t index) {
329329
case INT32:
330330
return mp_obj_new_int(((int32_t*)p)[index]);
331331
case UINT64:
332+
return mp_obj_new_int_from_ull(((uint64_t*)p)[index]);
332333
case INT64:
333334
return mp_obj_new_int_from_ll(((int64_t*)p)[index]);
334335
#if MICROPY_PY_BUILTINS_FLOAT

0 commit comments

Comments
 (0)