diff options
author | Damien George <damien.p.george@gmail.com> | 2014-10-03 20:05:44 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-10-03 20:05:44 +0100 |
commit | 00be7a849a633e7f0ad9509268a88f29968c92e7 (patch) | |
tree | 74e6833d25a4ab98f257eaed778cd8a19d9e4663 /py | |
parent | 39dc1454788d1c6fb06c79871c7cd6e12aeb50a0 (diff) | |
download | micropython-00be7a849a633e7f0ad9509268a88f29968c92e7.tar.gz micropython-00be7a849a633e7f0ad9509268a88f29968c92e7.zip |
py: Fix unix-cpy to compile with uint->mp_uint_t changes.
Diffstat (limited to 'py')
-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 2cfea0f5db..e08469460d 100644 --- a/py/compile.c +++ b/py/compile.c @@ -500,7 +500,7 @@ STATIC void cpython_c_tuple_emit_const(compiler_t *comp, mp_parse_node_t pn, vst case MP_PARSE_NODE_DECIMAL: vstr_printf(vstr, "%s", qstr_str(arg)); break; case MP_PARSE_NODE_STRING: case MP_PARSE_NODE_BYTES: { - uint len; + mp_uint_t len; const byte *str = qstr_data(arg, &len); cpython_c_print_quoted_str(vstr, (const char*)str, len, MP_PARSE_NODE_LEAF_KIND(pn) == MP_PARSE_NODE_BYTES); break; @@ -1564,7 +1564,7 @@ void compile_import_from(compiler_t *comp, mp_parse_node_struct_t *pns) { vstr_printf(vstr, ", "); } vstr_printf(vstr, "'"); - uint len; + mp_uint_t len; const byte *str = qstr_data(id2, &len); vstr_add_strn(vstr, (const char*)str, len); vstr_printf(vstr, "'"); |