Commit 994ff738 authored by Damien George's avatar Damien George
Browse files

py/mpstate: Make mp_pending_exception volatile.

It can change asynchronously.
parent a24eafac
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment