diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-11-15 01:40:23 +0300 |
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-11-15 01:41:22 +0300 |
| commit | a0b2c6ad32230d679260eb2a545e5272234254ff (patch) | |
| tree | 07077ae4df4144d14a3357424a041112e54d798b /py | |
| parent | 79d996a57b351e0ef354eb1e2f644b194433cc73 (diff) | |
py/runtime: mp_resume: Fix exception handling for nanbox port.
Diffstat (limited to 'py')
| -rw-r--r-- | py/runtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/runtime.c b/py/runtime.c index 4bab03b80..0ecccbd87 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -1201,7 +1201,7 @@ mp_vm_return_kind_t mp_resume(mp_obj_t self_in, mp_obj_t send_value, mp_obj_t th nlr_pop(); return MP_VM_RETURN_YIELD; } else { - *ret_val = nlr.ret_val; + *ret_val = MP_OBJ_FROM_PTR(nlr.ret_val); return MP_VM_RETURN_EXCEPTION; } } |
