diff options
Diffstat (limited to 'lib/libc/regex/engine.c')
-rw-r--r-- | lib/libc/regex/engine.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/regex/engine.c b/lib/libc/regex/engine.c index a5f39de..9d69c1e 100644 --- a/lib/libc/regex/engine.c +++ b/lib/libc/regex/engine.c @@ -186,8 +186,8 @@ int eflags; pp = mustlast; for (dp = start+g->mlen-1; dp < stop;) { /* Fast skip non-matches */ - while (dp < stop && charjump[*dp]) - dp += charjump[*dp]; + while (dp < stop && charjump[(int)*dp]) + dp += charjump[(int)*dp]; if (dp >= stop) break; @@ -203,7 +203,7 @@ int eflags; /* Jump to next possible match */ mj = matchjump[pp - mustfirst]; - cj = charjump[*dp]; + cj = charjump[(int)*dp]; dp += (cj < mj ? mj : cj); pp = mustlast; } |