From 4b72b3a133ea87a1ef8b964508dc25c551ccf093 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 3 Jan 2016 14:21:40 +0000 Subject: py: Change type signature of builtin funs that take variable or kw args. With this patch the n_args parameter is changed type from mp_uint_t to size_t. --- qemu-arm/main.c | 2 +- qemu-arm/test_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'qemu-arm') diff --git a/qemu-arm/main.c b/qemu-arm/main.c index e0f9a10ae..f29547523 100644 --- a/qemu-arm/main.c +++ b/qemu-arm/main.c @@ -52,7 +52,7 @@ mp_import_stat_t mp_import_stat(const char *path) { return MP_IMPORT_STAT_NO_EXIST; } -mp_obj_t mp_builtin_open(mp_uint_t n_args, const mp_obj_t *args, mp_map_t *kwargs) { +mp_obj_t mp_builtin_open(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs) { return mp_const_none; } MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, mp_builtin_open); diff --git a/qemu-arm/test_main.c b/qemu-arm/test_main.c index f678946d4..a98e275ce 100644 --- a/qemu-arm/test_main.c +++ b/qemu-arm/test_main.c @@ -82,7 +82,7 @@ mp_import_stat_t mp_import_stat(const char *path) { return MP_IMPORT_STAT_NO_EXIST; } -mp_obj_t mp_builtin_open(mp_uint_t n_args, const mp_obj_t *args, mp_map_t *kwargs) { +mp_obj_t mp_builtin_open(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs) { return mp_const_none; } MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, mp_builtin_open); -- cgit v1.2.3