summaryrefslogtreecommitdiffstatshomepage
path: root/unix
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-10-03 19:52:22 +0100
committerDamien George <damien.p.george@gmail.com>2014-10-03 19:52:22 +0100
commit39dc1454788d1c6fb06c79871c7cd6e12aeb50a0 (patch)
tree12cb09a1c24b932ca7bbf715a662e78c838e1bf9 /unix
parent3eaa0c383317f05b678422f88546ecf21ea4f9bb (diff)
downloadmicropython-39dc1454788d1c6fb06c79871c7cd6e12aeb50a0.tar.gz
micropython-39dc1454788d1c6fb06c79871c7cd6e12aeb50a0.zip
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 'unix')
-rw-r--r--unix/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/main.c b/unix/main.c
index 90f8cc6737..12ddfbb095 100644
--- a/unix/main.c
+++ b/unix/main.c
@@ -242,9 +242,9 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_0(mem_info_obj, mem_info);
#endif
STATIC mp_obj_t qstr_info(void) {
- uint n_pool, n_qstr, n_str_data_bytes, n_total_bytes;
+ mp_uint_t n_pool, n_qstr, n_str_data_bytes, n_total_bytes;
qstr_pool_info(&n_pool, &n_qstr, &n_str_data_bytes, &n_total_bytes);
- printf("qstr pool: n_pool=%u, n_qstr=%u, n_str_data_bytes=%u, n_total_bytes=%u\n", n_pool, n_qstr, n_str_data_bytes, n_total_bytes);
+ printf("qstr pool: n_pool=" UINT_FMT ", n_qstr=" UINT_FMT ", n_str_data_bytes=" UINT_FMT ", n_total_bytes=" UINT_FMT "\n", n_pool, n_qstr, n_str_data_bytes, n_total_bytes);
return mp_const_none;
}
STATIC MP_DEFINE_CONST_FUN_OBJ_0(qstr_info_obj, qstr_info);