diff options
author | Damien George <damien.p.george@gmail.com> | 2015-11-17 14:27:21 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-11-17 14:27:21 +0000 |
commit | 994ff738c8f12c1f7fd994ed45b2e191a9bc6ee4 (patch) | |
tree | 4b59c6685e552fbff3dcdde7e3eeec4de25bf253 | |
parent | a24eafacc9653232087bde15fb86bf86cb44cb06 (diff) | |
download | micropython-994ff738c8f12c1f7fd994ed45b2e191a9bc6ee4.tar.gz micropython-994ff738c8f12c1f7fd994ed45b2e191a9bc6ee4.zip |
py/mpstate: Make mp_pending_exception volatile.
It can change asynchronously.
-rw-r--r-- | py/mpstate.h | 2 |
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 |