From 71c9cfb028d423bf4760d66b1afe8951335fa5da Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 30 Aug 2017 10:59:58 +1000 Subject: all: Convert remaining "mp_uint_t n_args" to "size_t n_args". This is to have consistency across the whole repository. --- cc3200/misc/mpirq.c | 2 +- cc3200/misc/mpirq.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cc3200/misc') diff --git a/cc3200/misc/mpirq.c b/cc3200/misc/mpirq.c index d05f9181b..d54e7465b 100644 --- a/cc3200/misc/mpirq.c +++ b/cc3200/misc/mpirq.c @@ -145,7 +145,7 @@ void mp_irq_handler (mp_obj_t self_in) { /******************************************************************************/ // MicroPython bindings -STATIC mp_obj_t mp_irq_init (mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) { +STATIC mp_obj_t mp_irq_init(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) { mp_irq_obj_t *self = pos_args[0]; // this is a bit of a hack, but it let us reuse the callback_create method from our parent ((mp_obj_t *)pos_args)[0] = self->parent; diff --git a/cc3200/misc/mpirq.h b/cc3200/misc/mpirq.h index 35ce66e2d..223a34cae 100644 --- a/cc3200/misc/mpirq.h +++ b/cc3200/misc/mpirq.h @@ -34,7 +34,7 @@ /****************************************************************************** DEFINE TYPES ******************************************************************************/ -typedef mp_obj_t (*mp_irq_init_t) (mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args); +typedef mp_obj_t (*mp_irq_init_t) (size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args); typedef void (*mp_irq_void_method_t) (mp_obj_t self); typedef int (*mp_irq_int_method_t) (mp_obj_t self); -- cgit v1.2.3