diff options
| author | Dan Halbert <halbert@halwitz.org> | 2020-11-25 17:52:06 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2020-11-25 17:52:06 -0500 |
| commit | ef0830bfe241b544b05bd3081f5bba03af57fe0d (patch) | |
| tree | 28b6c45fdd03288bbf43b77f42025d1773622f13 /py/pystack.c | |
| parent | 9dbea36eac9a78cf324bba8d32a5cb2c9940d411 (diff) | |
| parent | e778fc1f876116fd8f07b95f9eb8439745988fba (diff) | |
merge from upstream + wip
Diffstat (limited to 'py/pystack.c')
| -rw-r--r-- | py/pystack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/pystack.c b/py/pystack.c index f79ea9210..0def75b10 100644 --- a/py/pystack.c +++ b/py/pystack.c @@ -43,8 +43,8 @@ void *mp_pystack_alloc(size_t n_bytes) { #endif if (MP_STATE_THREAD(pystack_cur) + n_bytes > MP_STATE_THREAD(pystack_end)) { // out of memory in the pystack - nlr_raise(mp_obj_new_exception_arg1(&mp_type_RuntimeError, - MP_OBJ_NEW_QSTR(MP_QSTR_pystack_space_exhausted))); + mp_raise_arg1(&mp_type_RuntimeError, + MP_OBJ_NEW_QSTR(MP_QSTR_pystack_space_exhausted)); } void *ptr = MP_STATE_THREAD(pystack_cur); MP_STATE_THREAD(pystack_cur) += n_bytes; |
