summaryrefslogtreecommitdiffstatshomepage
path: root/py/compile.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-10-03 17:44:14 +0000
committerDamien George <damien.p.george@gmail.com>2014-10-03 17:44:14 +0000
commit42f3de924bc3e285490f5f293955bc6d7e5a0edf (patch)
treec33a59825957ca5561bb7bb5038575ff052d5245 /py/compile.c
parent877dba3e1a76d151c0d93c88bcfaac62ecfe3799 (diff)
downloadmicropython-42f3de924bc3e285490f5f293955bc6d7e5a0edf.tar.gz
micropython-42f3de924bc3e285490f5f293955bc6d7e5a0edf.zip
py: Convert [u]int to mp_[u]int_t where appropriate.
Addressing issue #50.
Diffstat (limited to 'py/compile.c')
-rw-r--r--py/compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/compile.c b/py/compile.c
index a9d19d2a94..4ccd405c79 100644
--- a/py/compile.c
+++ b/py/compile.c
@@ -493,7 +493,7 @@ STATIC void cpython_c_tuple_emit_const(compiler_t *comp, mp_parse_node_t pn, vst
return;
}
- int arg = MP_PARSE_NODE_LEAF_ARG(pn);
+ mp_uint_t arg = MP_PARSE_NODE_LEAF_ARG(pn);
switch (MP_PARSE_NODE_LEAF_KIND(pn)) {
case MP_PARSE_NODE_ID: assert(0);
case MP_PARSE_NODE_INTEGER: vstr_printf(vstr, "%s", qstr_str(arg)); break;
@@ -853,7 +853,7 @@ STATIC void c_assign(compiler_t *comp, mp_parse_node_t pn, assign_kind_t assign_
assert(0);
} else if (MP_PARSE_NODE_IS_LEAF(pn)) {
if (MP_PARSE_NODE_IS_ID(pn)) {
- int arg = MP_PARSE_NODE_LEAF_ARG(pn);
+ qstr arg = MP_PARSE_NODE_LEAF_ARG(pn);
switch (assign_kind) {
case ASSIGN_STORE:
case ASSIGN_AUG_STORE: