summaryrefslogtreecommitdiffstatshomepage
path: root/unix/modjni.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-01-04 16:10:42 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-01-04 16:10:42 +0300
commiteac22e29a5844e5aa5c865c2e73900e6ef039ad6 (patch)
treeeb6061370af9e70c7d7f155ce39869251a8c1930 /unix/modjni.c
parentc3f70c603efcb053810dbee8d5cc9f23ed62d01f (diff)
downloadmicropython-eac22e29a5844e5aa5c865c2e73900e6ef039ad6.tar.gz
micropython-eac22e29a5844e5aa5c865c2e73900e6ef039ad6.zip
all: Consistently update signatures of .make_new and .call methods.
Otherwise, they serve reoccurring source of copy-paste mistakes and breaking nanbox build.
Diffstat (limited to 'unix/modjni.c')
-rw-r--r--unix/modjni.c4
1 files changed, 2 insertions, 2 deletions
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"));
}