summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regcomp.c b/regcomp.c
index 41c88e7438..31a0b35536 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -8717,7 +8717,7 @@ tryagain:
RExC_end = RExC_parse + 2;
}
else {
- tmpbuf[0] = ender;
+ tmpbuf[0] = (char) ender;
RExC_end = RExC_parse + 1;
}
@@ -8742,7 +8742,7 @@ tryagain:
/* Prime the casefolded buffer. */
if (isASCII(ender)) {
ender = toLOWER(ender);
- *tmpbuf = ender;
+ *tmpbuf = (U8) ender;
foldlen = 1;
}
else if (! MORE_ASCII_RESTRICTED) {