From 20f85feecc5ea42406f5c37194f6b831d574824e Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 28 Oct 2015 00:21:28 +0300 Subject: [PATCH] extmod/moductypes: When dealing with UINT64, use mp_obj_new_int_from_ull(). Since we now have it. --- extmod/moductypes.c | 1 + 1 file changed, 1 insertion(+) diff --git a/extmod/moductypes.c b/extmod/moductypes.c index 21d6f451a8..3d8a0f617a 100644 --- a/extmod/moductypes.c +++ b/extmod/moductypes.c @@ -329,6 +329,7 @@ STATIC mp_obj_t get_aligned(uint val_type, void *p, mp_int_t index) { case INT32: return mp_obj_new_int(((int32_t*)p)[index]); case UINT64: + return mp_obj_new_int_from_ull(((uint64_t*)p)[index]); case INT64: return mp_obj_new_int_from_ll(((int64_t*)p)[index]); #if MICROPY_PY_BUILTINS_FLOAT