summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regexec.c b/regexec.c
index cad6a404eb..b70896f231 100644
--- a/regexec.c
+++ b/regexec.c
@@ -3286,8 +3286,8 @@ S_regmatch(pTHX_ regnode *prog)
locinput++;
} else {
while (locinput <= e
- && *locinput != c1
- && *locinput != c2)
+ && (U8) *locinput != (U8) c1
+ && (U8) *locinput != (U8) c2)
locinput++;
}
count = locinput - old;