summaryrefslogtreecommitdiff
path: root/lib/libc/regex/engine.c
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2003-02-16 17:29:11 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2003-02-16 17:29:11 +0000
commite0554a531f17f56167f978eddf29a09cc6ae9f32 (patch)
tree3b5579370346d51f378192429db2130e5e82a6e4 /lib/libc/regex/engine.c
parent9d4156aed31c055ba32bc23b2a53d885002de085 (diff)
Notes
Diffstat (limited to 'lib/libc/regex/engine.c')
-rw-r--r--lib/libc/regex/engine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/regex/engine.c b/lib/libc/regex/engine.c
index a5f39ded4c5fc..9d69c1e989914 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;
}