diff options
| author | Mark <56205165+gamblor21@users.noreply.github.com> | 2020-12-01 15:47:16 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-01 15:47:16 -0600 |
| commit | 237385798cb6989a5ed13e120c3cc5e2415af935 (patch) | |
| tree | 932aa4302e84bd59f84c29c2364f9c6d75192fb2 /py/pystack.c | |
| parent | 23ed3ef971f8f38497337874da39273e5ae090d7 (diff) | |
| parent | 5b3c930e384ef6440f0f7b5167bb54ea68a8be76 (diff) | |
Merge branch 'main' into bus_device
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; |
