diff options
author | Damien George <damien.p.george@gmail.com> | 2017-02-16 15:32:34 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-02-16 16:51:13 +1100 |
commit | 4e3bac2e42788aa9312a6145aef18da083eac2df (patch) | |
tree | 5334a7b7c914dc80202f3ad3419618789c4f8411 /py/nativeglue.c | |
parent | a937750cebc104296f9342e559626ff354772fda (diff) | |
download | micropython-4e3bac2e42788aa9312a6145aef18da083eac2df.tar.gz micropython-4e3bac2e42788aa9312a6145aef18da083eac2df.zip |
py/runtime: Convert mp_uint_t to size_t where appropriate.
Diffstat (limited to 'py/nativeglue.c')
-rw-r--r-- | py/nativeglue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/nativeglue.c b/py/nativeglue.c index 5f2164ee0d..5db63080b4 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); } |