diff options
author | Damien George <damien.p.george@gmail.com> | 2017-03-28 22:37:26 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-28 22:37:26 +1100 |
commit | 94c41bb06f6482ece0717c5bd63266b8da063caa (patch) | |
tree | df160d43c3e16b8de060a1968a85c49f235077b0 /py/objarray.c | |
parent | 7b1804c582a2ddb5a841335c43bd94faaee72584 (diff) |
py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible.
Saves 168 bytes on bare-arm.
Diffstat (limited to 'py/objarray.c')
-rw-r--r-- | py/objarray.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objarray.c b/py/objarray.c index 05d28c8a8..21479a800 100644 --- a/py/objarray.c +++ b/py/objarray.c @@ -391,7 +391,7 @@ STATIC mp_obj_t array_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj_t value mp_obj_array_t *src_slice = MP_OBJ_TO_PTR(value); if (item_sz != mp_binary_get_size('@', src_slice->typecode & TYPECODE_MASK, NULL)) { compat_error: - mp_raise_msg(&mp_type_ValueError, "lhs and rhs should be compatible"); + mp_raise_ValueError("lhs and rhs should be compatible"); } src_len = src_slice->len; src_items = src_slice->items; |