summaryrefslogtreecommitdiff
path: root/stmhal/pyexec.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-10-05 21:51:54 +0100
committerDamien George <damien.p.george@gmail.com>2014-10-05 21:51:54 +0100
commitd03c6816083c8ce8a35d278ede48c4089012b055 (patch)
tree649e2d3bf056a44109fb1f69bf1c855f3b11d067 /stmhal/pyexec.c
parentc4d0868df1117ad243ee8f7238985a822b0f775d (diff)
stmhal: Use mp_uint_t where appropriate.
Found these by compiling stmhal with mp_uint_t of type uint32_t instead of unsigned int. This actually makes a difference to the code, but just a curiosity.
Diffstat (limited to 'stmhal/pyexec.c')
-rw-r--r--stmhal/pyexec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/pyexec.c b/stmhal/pyexec.c
index 0ce4882e2..f458bd0ff 100644
--- a/stmhal/pyexec.c
+++ b/stmhal/pyexec.c
@@ -101,9 +101,9 @@ bool parse_compile_execute(mp_lexer_t *lex, mp_parse_input_kind_t input_kind, bo
gc_collect();
// qstr info
{
- 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:\n n_pool=%u\n n_qstr=%u\n n_str_data_bytes=%u\n n_total_bytes=%u\n", n_pool, n_qstr, n_str_data_bytes, n_total_bytes);
+ printf("qstr:\n n_pool=" UINT_FMT "\n n_qstr=" UINT_FMT "\n n_str_data_bytes=" UINT_FMT "\n n_total_bytes=" UINT_FMT "\n", n_pool, n_qstr, n_str_data_bytes, n_total_bytes);
}
// GC info