From 39dc1454788d1c6fb06c79871c7cd6e12aeb50a0 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 3 Oct 2014 19:52:22 +0100 Subject: py: Change [u]int to mp_[u]int_t in qstr.[ch], and some other places. This should pretty much resolve issue #50. --- unix/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unix/main.c') 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); -- cgit v1.2.3