diff options
author | Damien George <damien.p.george@gmail.com> | 2017-10-24 22:39:36 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-10-24 22:39:36 +1100 |
commit | f4059dcc0c5251256a53fcb49f56fdda6e879341 (patch) | |
tree | a808f552e7ce64740bcb3ba4d584b0ef8d51abd4 /extmod/modutimeq.c | |
parent | cfff12612f92d6ae460e9748394a0cedf3b3d31d (diff) |
all: Use NULL instead of "" when calling mp_raise exception helpers.
This is the established way of doing it and reduces code size by a little
bit.
Diffstat (limited to 'extmod/modutimeq.c')
-rw-r--r-- | extmod/modutimeq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/modutimeq.c b/extmod/modutimeq.c index 94cbd20d2..620e7484b 100644 --- a/extmod/modutimeq.c +++ b/extmod/modutimeq.c @@ -146,7 +146,7 @@ STATIC mp_obj_t mod_utimeq_heappop(mp_obj_t heap_in, mp_obj_t list_ref) { } mp_obj_list_t *ret = MP_OBJ_TO_PTR(list_ref); if (!MP_OBJ_IS_TYPE(list_ref, &mp_type_list) || ret->len < 3) { - mp_raise_TypeError(""); + mp_raise_TypeError(NULL); } struct qentry *item = &heap->items[0]; |