summaryrefslogtreecommitdiff
path: root/extmod/modutimeq.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2017-02-24 15:13:07 +0100
committerScott Shawcroft <scott.shawcroft@gmail.com>2017-02-24 15:13:07 +0100
commit12fa5b3a66d6f0034113a56c7d647c7bac5be74c (patch)
treecc4d5103421f930b7ebaa20eb7d6c8d59c6b6f0d /extmod/modutimeq.c
parentefd429464ed82c78fd2e11244a803c7ec2cb2211 (diff)
Switch exception throwing to mp_raise helpers. It saves a little code space each time to share the call.
Diffstat (limited to 'extmod/modutimeq.c')
-rw-r--r--extmod/modutimeq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/modutimeq.c b/extmod/modutimeq.c
index f73b39103..26ccb5182 100644
--- a/extmod/modutimeq.c
+++ b/extmod/modutimeq.c
@@ -121,7 +121,7 @@ STATIC mp_obj_t mod_utimeq_heappush(size_t n_args, const mp_obj_t *args) {
mp_obj_t heap_in = args[0];
mp_obj_utimeq_t *heap = get_heap(heap_in);
if (heap->len == heap->alloc) {
- mp_raise_msg(&mp_type_IndexError, "queue overflow");
+ mp_raise_IndexError("queue overflow");
}
mp_uint_t l = heap->len;
heap->items[l].time = MP_OBJ_SMALL_INT_VALUE(args[1]);