if (itemsize) {
STRLEN to_copy = itemsize;
const char *const send = s + len;
- const U8 *source;
+ const U8 *source = (const U8 *) s;
U8 *tmp = NULL;
gotsome = TRUE;
}
}
if (targ_is_utf8 && !item_is_utf8) {
- source = tmp = bytes_to_utf8((U8*)SvPVX(sv), &to_copy);
+ source = tmp = bytes_to_utf8(source, &to_copy);
SvCUR_set(PL_formtarget,
t - SvPVX_const(PL_formtarget));
} else {
SvCUR_set(PL_formtarget,
t - SvPVX_const(PL_formtarget));
}
- source = (U8 *) SvPVX(sv);
/* Easy. They agree. */
assert (item_is_utf8 == targ_is_utf8);