py/mpstate: Make mp_pending_exception volatile.

It can change asynchronously.
This commit is contained in:
Damien George 2015-11-17 14:27:21 +00:00
parent a24eafacc9
commit 994ff738c8
1 changed files with 1 additions and 1 deletions

View File

@ -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