aboutsummaryrefslogtreecommitdiff
path: root/extmod/moduheapq.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-11-05 11:33:03 +1100
committerDamien George <damien.p.george@gmail.com>2019-11-05 11:35:45 +1100
commitc13f9f209d7a343fe306a24a04eb934ce905b631 (patch)
tree1f663134d7784aa0a2b43fe349e49ad82f5817f8 /extmod/moduheapq.c
parent80df377e9512ac839ab19192ff1897ba30be098b (diff)
all: Convert nlr_raise(mp_obj_new_exception_msg(x)) to mp_raise_msg(x).
This helper function was added a while ago and these are the remaining cases to convert, to save a bit of code size.
Diffstat (limited to 'extmod/moduheapq.c')
-rw-r--r--extmod/moduheapq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/moduheapq.c b/extmod/moduheapq.c
index 1574eb862..f63305210 100644
--- a/extmod/moduheapq.c
+++ b/extmod/moduheapq.c
@@ -81,7 +81,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_2(mod_uheapq_heappush_obj, mod_uheapq_heappush);
STATIC mp_obj_t mod_uheapq_heappop(mp_obj_t heap_in) {
mp_obj_list_t *heap = uheapq_get_heap(heap_in);
if (heap->len == 0) {
- nlr_raise(mp_obj_new_exception_msg(&mp_type_IndexError, "empty heap"));
+ mp_raise_msg(&mp_type_IndexError, "empty heap");
}
mp_obj_t item = heap->items[0];
heap->len -= 1;