summaryrefslogtreecommitdiffstatshomepage
path: root/py/mpstate.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/mpstate.h')
-rw-r--r--py/mpstate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mpstate.h b/py/mpstate.h
index 9a8cc02013..c1c1faef0c 100644
--- a/py/mpstate.h
+++ b/py/mpstate.h
@@ -105,7 +105,7 @@ typedef struct _mp_state_vm_t {
mp_map_t mp_loaded_modules_map;
// pending exception object (MP_OBJ_NULL if not pending)
- mp_obj_t mp_pending_exception;
+ volatile mp_obj_t mp_pending_exception;
// current exception being handled, for sys.exc_info()
#if MICROPY_PY_SYS_EXC_INFO