diff options
| author | Damien George | 2020-11-05 22:39:54 +1100 |
|---|---|---|
| committer | Damien George | 2020-11-11 22:18:24 +1100 |
| commit | bdfb584b294bf1379921b08ec020386b8ff6257b (patch) | |
| tree | d85452ade4f49a72a10b4eef3acf9c88f3387637 /extmod/moductypes.c | |
| parent | 1fef5662ab96a27c2b279082607103bbe5da9de5 (diff) | |
extmod/moductypes: Fix storing to (U)INT64 arrays on 32-bit archs.
Fixes issue #6583.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'extmod/moductypes.c')
| -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 c5fbf12e4..79a49d5c3 100644 --- a/extmod/moductypes.c +++ b/extmod/moductypes.c @@ -399,7 +399,7 @@ STATIC void set_aligned(uint val_type, void *p, mp_int_t index, mp_obj_t val) { ((uint64_t *)p)[index] = (uint64_t)v; } else { // TODO: Doesn't offer atomic store semantics, but should at least try - set_unaligned(val_type, p, MP_ENDIANNESS_BIG, val); + set_unaligned(val_type, (void *)&((uint64_t *)p)[index], MP_ENDIANNESS_BIG, val); } return; default: |
