From 4e3bac2e42788aa9312a6145aef18da083eac2df Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 16 Feb 2017 15:32:34 +1100 Subject: py/runtime: Convert mp_uint_t to size_t where appropriate. --- py/nativeglue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/nativeglue.c') diff --git a/py/nativeglue.c b/py/nativeglue.c index 5f2164ee0..5db63080b 100644 --- a/py/nativeglue.c +++ b/py/nativeglue.c @@ -86,7 +86,7 @@ mp_obj_t mp_convert_native_to_obj(mp_uint_t val, mp_uint_t type) { // wrapper that accepts n_args and n_kw in one argument // (native emitter can only pass at most 3 arguments to a function) -mp_obj_t mp_native_call_function_n_kw(mp_obj_t fun_in, mp_uint_t n_args_kw, const mp_obj_t *args) { +mp_obj_t mp_native_call_function_n_kw(mp_obj_t fun_in, size_t n_args_kw, const mp_obj_t *args) { return mp_call_function_n_kw(fun_in, n_args_kw & 0xff, (n_args_kw >> 8) & 0xff, args); } -- cgit v1.2.3