8000 py/parse: Update debugging code to compile on 64-bit arch. · neverhover/micropython@d3fbfa4 · GitHub
[go: up one dir, main page]

Skip to content

Commit d3fbfa4

Browse files
committed
py/parse: Update debugging code to compile on 64-bit arch.
1 parent 0016a45 commit d3fbfa4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

py/parse.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -872,14 +872,14 @@ mp_parse_tree_t mp_parse(mp_lexer_t *lex, mp_parse_input_kind_t input_kind) {
872872
const uint16_t *rule_arg = get_rule_arg(rule_id);
873873
size_t n = rule_act & RULE_ACT_ARG_MASK;
874874

875-
/*
875+
#if 0
876876
// debugging
877-
printf("depth=%d ", parser.rule_stack_top);
877+
printf("depth=" UINT_FMT " ", parser.rule_stack_top);
878878
for (int j = 0; j < parser.rule_stack_top; ++j) {
879879
printf(" ");
880880
}
881-
printf("%s n=%d i=%d bt=%d\n", rule_name_table[rule_id], n, i, backtrack);
882-
*/
881+
printf("%s n=" UINT_FMT " i=" UINT_FMT " bt=%d\n", rule_name_table[rule_id], n, i, backtrack);
882+
#endif
883883

884884
switch (rule_act & RULE_ACT_KIND_MASK) {
885885
case RULE_ACT_OR:

0 commit comments

Comments
 (0)
0