Skip to content

Commit 1e549e3

Browse files
committed
fix remimu attempt 3
1 parent bcaec47 commit 1e549e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/engine/external/remimu.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ REMIMU_FUNC_VISIBILITY int64_t regex_match(const RegexToken * tokens, const char
10091009
return -2;
10101010
}
10111011
}
1012-
IF_VERBOSE(printf("k: %" PRIu32 "\ti: %" PRIu64 "\tl: %d\tstack_n: %" PRIu64 "\n", k, i, limit, (int)stack_n);)
1012+
IF_VERBOSE(printf("k: %" PRIu32 "\ti: %" PRIu64 "\tl: %d\tstack_n: %d\n", k, i, limit, (int)stack_n);)
10131013
_P_TEXT_HIGHLIGHTED();
10141014
if (tokens[k].kind == REMIMU_KIND_CARET)
10151015
{
@@ -1102,7 +1102,7 @@ REMIMU_FUNC_VISIBILITY int64_t regex_match(const RegexToken * tokens, const char
11021102
if (tokens[k].kind == REMIMU_KIND_END) // unbalanced parens
11031103
return -3;
11041104

1105-
IF_VERBOSE(printf("---?!?! %" PRIu64 ", %" PRIu32 "\n", k, q_group_state[tokens[k].mask[0]]);)
1105+
IF_VERBOSE(printf("---?!?! %" PRIu32 ", %" PRIu32 "\n", k, q_group_state[tokens[k].mask[0]]);)
11061106
if (tokens[k].kind == REMIMU_KIND_CLOSE)
11071107
{
11081108
IF_VERBOSE(puts("!!~!~!~~~~!!~~!~ hit CLOSE. rewinding");)
@@ -1204,7 +1204,7 @@ REMIMU_FUNC_VISIBILITY int64_t regex_match(const RegexToken * tokens, const char
12041204
if ((force_zero || (prev != 0 && rewind_stack[prev].i == i))) // && q_group_state[tokens[k].mask[0]] > 0
12051205
{
12061206
IF_VERBOSE(printf("rejecting zero-length match..... %d %" PRIu64 " %" PRIu64 "\n", (int)force_zero, rewind_stack[prev].i, i);)
1207-
IF_VERBOSE(printf("%" PRIu32 " (k: %" PRIu64 ")\n", q_group_state[tokens[k].mask[0]], k);)
1207+
IF_VERBOSE(printf("%" PRIu32 " (k: %" PRIu32 ")\n", q_group_state[tokens[k].mask[0]], k);)
12081208

12091209
q_group_accepts_zero[tokens[k].mask[0]] = 1;
12101210
_REWIND_OR_ABORT();

0 commit comments

Comments
 (0)