termlen = 1;
}
else {
- termcode = utf8_to_uvchr(s, &termlen);
+ termcode = utf8_to_uvchr((U8*)s, &termlen);
Copy(s, termstr, termlen, U8);
if (!UTF8_IS_INVARIANT(term))
has_utf8 = TRUE;
while (cont) {
int offset = s - SvPVX(PL_linestr);
bool found = sv_cat_decode(sv, PL_encoding, PL_linestr,
- &offset, termstr, termlen);
+ &offset, (char*)termstr, termlen);
char *ns = SvPVX(PL_linestr) + offset;
char *svlast = SvEND(sv) - 1;
else if (*s == term) {
if (termlen == 1)
break;
- if (s+termlen <= PL_bufend && memEQ(s, termstr, termlen))
+ if (s+termlen <= PL_bufend && memEQ(s, (char*)termstr, termlen))
break;
}
else if (!has_utf8 && !UTF8_IS_INVARIANT((U8)*s) && UTF)