diff options
| author | Damien George <damien.p.george@gmail.com> | 2017-08-30 10:59:58 +1000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2017-08-30 10:59:58 +1000 |
| commit | 71c9cfb028d423bf4760d66b1afe8951335fa5da (patch) | |
| tree | 83ce8ec7270f759f73911f5b45bede989872a9b5 /cc3200/misc | |
| parent | 784909ce1655bf8b2a97ac81a3842e844992082f (diff) | |
all: Convert remaining "mp_uint_t n_args" to "size_t n_args".
This is to have consistency across the whole repository.
Diffstat (limited to 'cc3200/misc')
| -rw-r--r-- | cc3200/misc/mpirq.c | 2 | ||||
| -rw-r--r-- | cc3200/misc/mpirq.h | 2 |
2 files changed, 2 insertions, 2 deletions
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); |
