diff options
| author | askpatricw <4002194+askpatrickw@users.noreply.github.com> | 2020-12-15 15:43:27 -0800 |
|---|---|---|
| committer | askpatricw <4002194+askpatrickw@users.noreply.github.com> | 2020-12-15 15:43:27 -0800 |
| commit | 1d37d3f43b528f528816f066435fa87adf811b90 (patch) | |
| tree | ec70bd9ad59fb43655854be9e2e06f20c5b1c6c0 /py/pystack.c | |
| parent | e2c833adf468cd84f8dfcc03cf47de9da0c34b1f (diff) | |
| parent | a2d2d699e4d431d4459eae172444bd569559ff02 (diff) | |
Merge branch 'main' of https://github.com/adafruit/circuitpython into main
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; |
