diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-04-21 16:40:57 +0300 |
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-04-21 16:43:21 +0300 |
| commit | 9e8f3163924c1f429f16f44a4a27b0cd33064719 (patch) | |
| tree | 0ae3ee37e882ed9f34dabdfc3925efa3ea8865d0 /extmod | |
| parent | 3e5cd35a9f6b2877f72f4af6865f14363826de4c (diff) | |
extmod/moductypes: Fix bigint handling for 32-bit ports.
Diffstat (limited to 'extmod')
| -rw-r--r-- | extmod/moductypes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/moductypes.c b/extmod/moductypes.c index 6249a4940..d2d2e85de 100644 --- a/extmod/moductypes.c +++ b/extmod/moductypes.c @@ -360,7 +360,7 @@ STATIC void set_aligned(uint val_type, void *p, mp_int_t index, mp_obj_t val) { return; } #endif - mp_int_t v = mp_obj_get_int(val); + mp_int_t v = mp_obj_get_int_truncated(val); switch (val_type) { case UINT8: ((uint8_t*)p)[index] = (uint8_t)v; return; |
