diff options
| author | Lucian Copeland <hierophect@gmail.com> | 2020-11-23 18:40:14 -0500 |
|---|---|---|
| committer | Lucian Copeland <hierophect@gmail.com> | 2020-11-23 18:40:14 -0500 |
| commit | 8ffd973e226b016189f2e4a13212184a0f821d5e (patch) | |
| tree | b60450b23137727056ccc0264d18245152f4607b /py/pystack.c | |
| parent | 0bbdf05936c1b36bee6ef4f9f81bd3b9ea40fbc6 (diff) | |
| parent | a80bf222110ad873344fcedb600978754df5a19b (diff) | |
Merge remote-tracking branch 'upstream/main' into esp32s2-udp
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; |
