summaryrefslogtreecommitdiffstatshomepage
path: root/py/builtinevex.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-03-25 19:48:18 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-29 12:56:45 +1100
commit6b341075376705ee1fe9e003b76b09afa59778f4 (patch)
tree2bcf12db2528b718692b7e9a6fc50547413b749f /py/builtinevex.c
parentca06fac4a1d3bc0a4b8178e11504d44a86c955ef (diff)
downloadmicropython-6b341075376705ee1fe9e003b76b09afa59778f4.tar.gz
micropython-6b341075376705ee1fe9e003b76b09afa59778f4.zip
py: Change mp_uint_t to size_t for mp_obj_str_get_data len arg.
Diffstat (limited to 'py/builtinevex.c')
-rw-r--r--py/builtinevex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/builtinevex.c b/py/builtinevex.c
index 89fcc2fe1a..d9a3833ccc 100644
--- a/py/builtinevex.c
+++ b/py/builtinevex.c
@@ -78,7 +78,7 @@ STATIC mp_obj_t mp_builtin_compile(size_t n_args, const mp_obj_t *args) {
(void)n_args;
// get the source
- mp_uint_t str_len;
+ size_t str_len;
const char *str = mp_obj_str_get_data(args[0], &str_len);
// get the filename
@@ -128,7 +128,7 @@ STATIC mp_obj_t eval_exec_helper(size_t n_args, const mp_obj_t *args, mp_parse_i
}
#endif
- mp_uint_t str_len;
+ size_t str_len;
const char *str = mp_obj_str_get_data(args[0], &str_len);
// create the lexer