diff options
author | Damien George <damien.p.george@gmail.com> | 2014-10-03 19:52:22 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-10-03 19:52:22 +0100 |
commit | 39dc1454788d1c6fb06c79871c7cd6e12aeb50a0 (patch) | |
tree | 12cb09a1c24b932ca7bbf715a662e78c838e1bf9 /py/compile.c | |
parent | 3eaa0c383317f05b678422f88546ecf21ea4f9bb (diff) |
py: Change [u]int to mp_[u]int_t in qstr.[ch], and some other places.
This should pretty much resolve issue #50.
Diffstat (limited to 'py/compile.c')
-rw-r--r-- | py/compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/compile.c b/py/compile.c index 4ccd405c7..2cfea0f5d 100644 --- a/py/compile.c +++ b/py/compile.c @@ -1459,7 +1459,7 @@ STATIC void do_import_name(compiler_t *comp, mp_parse_node_t pn, qstr *q_base) { if (i > 0) { *str_dest++ = '.'; } - uint str_src_len; + mp_uint_t str_src_len; const byte *str_src = qstr_data(MP_PARSE_NODE_LEAF_ARG(pns->nodes[i]), &str_src_len); memcpy(str_dest, str_src, str_src_len); str_dest += str_src_len; @@ -2563,7 +2563,7 @@ void compile_atom_string(compiler_t *comp, mp_parse_node_struct_t *pns) { byte *s_dest = qstr_build_start(n_bytes, &q_ptr); for (int i = 0; i < n; i++) { if (MP_PARSE_NODE_IS_LEAF(pns->nodes[i])) { - uint s_len; + mp_uint_t s_len; const byte *s = qstr_data(MP_PARSE_NODE_LEAF_ARG(pns->nodes[i]), &s_len); memcpy(s_dest, s, s_len); s_dest += s_len; |