From eac22e29a5844e5aa5c865c2e73900e6ef039ad6 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 4 Jan 2017 16:10:42 +0300 Subject: all: Consistently update signatures of .make_new and .call methods. Otherwise, they serve reoccurring source of copy-paste mistakes and breaking nanbox build. --- unix/modjni.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unix/modjni.c') diff --git a/unix/modjni.c b/unix/modjni.c index b54da8b15a..b474e26ea7 100644 --- a/unix/modjni.c +++ b/unix/modjni.c @@ -157,7 +157,7 @@ STATIC void jclass_attr(mp_obj_t self_in, qstr attr_in, mp_obj_t *dest) { } } -STATIC mp_obj_t jclass_call(mp_obj_t self_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) { +STATIC mp_obj_t jclass_call(mp_obj_t self_in, size_t n_args, size_t n_kw, const mp_obj_t *args) { if (n_kw != 0) { nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_TypeError, "kwargs not supported")); } @@ -554,7 +554,7 @@ next_method: } -STATIC mp_obj_t jmethod_call(mp_obj_t self_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) { +STATIC mp_obj_t jmethod_call(mp_obj_t self_in, size_t n_args, size_t n_kw, const mp_obj_t *args) { if (n_kw != 0) { nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_TypeError, "kwargs not supported")); } -- cgit v1.2.3