diff options
author | Damien George <damien.p.george@gmail.com> | 2016-01-16 21:07:26 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-01-16 21:07:26 +0000 |
commit | e7bee6b35ea4c9e622209902456be64559b94d17 (patch) | |
tree | f1b510da668e08054306a769d6c7b0a74c7446b8 /pic16bit/modpybswitch.c | |
parent | 31dd312f83464d26b19c6eeed1e0e3e7c8aa30ad (diff) |
pic16bit: Minor updates to types to allow port to compile again.
Diffstat (limited to 'pic16bit/modpybswitch.c')
-rw-r--r-- | pic16bit/modpybswitch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pic16bit/modpybswitch.c b/pic16bit/modpybswitch.c index 901e478cc..aa102e821 100644 --- a/pic16bit/modpybswitch.c +++ b/pic16bit/modpybswitch.c @@ -45,7 +45,7 @@ void pyb_switch_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t mp_printf(print, "Switch(%u)", SWITCH_ID(self)); } -STATIC mp_obj_t pyb_switch_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) { +STATIC mp_obj_t pyb_switch_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) { mp_arg_check_num(n_args, n_kw, 1, 1, false); mp_int_t sw_id = mp_obj_get_int(args[0]); if (!(1 <= sw_id && sw_id <= NUM_SWITCH)) { @@ -60,7 +60,7 @@ mp_obj_t pyb_switch_value(mp_obj_t self_in) { } STATIC MP_DEFINE_CONST_FUN_OBJ_1(pyb_switch_value_obj, pyb_switch_value); -mp_obj_t pyb_switch_call(mp_obj_t self_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) { +mp_obj_t pyb_switch_call(mp_obj_t self_in, size_t n_args, size_t n_kw, const mp_obj_t *args) { mp_arg_check_num(n_args, n_kw, 0, 0, false); return pyb_switch_value(self_in); } |