diff options
Diffstat (limited to 'py/mpstate.h')
-rw-r--r-- | py/mpstate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/mpstate.h b/py/mpstate.h index 0134dd8e8..2b8f29a6a 100644 --- a/py/mpstate.h +++ b/py/mpstate.h @@ -120,8 +120,8 @@ typedef struct _mp_state_vm_t { // memory for exception arguments if we can't allocate RAM #if MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF #if MICROPY_EMERGENCY_EXCEPTION_BUF_SIZE > 0 - // statically allocated buf - byte mp_emergency_exception_buf[MICROPY_EMERGENCY_EXCEPTION_BUF_SIZE]; + // statically allocated buf (needs to be aligned to mp_obj_t) + mp_obj_t mp_emergency_exception_buf[MICROPY_EMERGENCY_EXCEPTION_BUF_SIZE / sizeof(mp_obj_t)]; #else // dynamically allocated buf byte *mp_emergency_exception_buf; |