aboutsummaryrefslogtreecommitdiff
path: root/extmod/modutimeq.c
diff options
context:
space:
mode:
authorDamien George2017-08-29 13:04:01 +1000
committerDamien George2017-08-29 13:16:30 +1000
commit58321dd9854d71a96e5db2d361e0efc05d9de8cf (patch)
tree99868b98083b1b25715303ee6f2b62835492ffce /extmod/modutimeq.c
parentbe8e5744e64aec10a3499fd6ea034bbf4be0c871 (diff)
all: Convert mp_uint_t to mp_unary_op_t/mp_binary_op_t where appropriate
The unary-op/binary-op enums are already defined, and there are no arithmetic tricks used with these types, so it makes sense to use the correct enum type for arguments that take these values. It also reduces code size quite a bit for nan-boxing builds.
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 a19b3fda9..faa589583 100644
--- a/extmod/modutimeq.c
+++ b/extmod/modutimeq.c
@@ -189,7 +189,7 @@ STATIC mp_obj_t mod_utimeq_dump(mp_obj_t heap_in) {
STATIC MP_DEFINE_CONST_FUN_OBJ_1(mod_utimeq_dump_obj, mod_utimeq_dump);
#endif
-STATIC mp_obj_t utimeq_unary_op(mp_uint_t op, mp_obj_t self_in) {
+STATIC mp_obj_t utimeq_unary_op(mp_unary_op_t op, mp_obj_t self_in) {
mp_obj_utimeq_t *self = MP_OBJ_TO_PTR(self_in);
switch (op) {
case MP_UNARY_OP_BOOL: return mp_obj_new_bool(self->len != 0);