p4raw-id: //depot/perl@18995
MAGIC *mg = SvUTF8(sv) && SvMAGICAL(sv) ?
mg_find(sv, PERL_MAGIC_utf8) : NULL;
if (mg && mg->mg_len >= 0)
- mg->mg_len += utf8_length(STRING(scan),
- STRING(scan)+STR_LEN(scan));
+ mg->mg_len += utf8_length((U8*)STRING(scan),
+ (U8*)STRING(scan)+STR_LEN(scan));
}
if (UTF)
SvUTF8_on(data->last_found);