#define HALF_UPGRADE(start,end) { \
- U8* new; \
+ U8* newstr; \
STRLEN len; \
len = end-start; \
- new = bytes_to_utf8(start, &len); \
- Copy(new,start,len,U8*); \
+ newstr = bytes_to_utf8(start, &len); \
+ Copy(newstr,start,len,U8*); \
end = start + len; \
}
}
}
*d='\0';
- sv_setpvn(sv, dstart, d - dstart);
+ sv_setpvn(sv, (const char*)dstart, d - dstart);
SvUTF8_on(sv);
SvLEN_set(sv, 2*len+1);
SvSETMAGIC(sv);
s += UTF8SKIP(s);
}
*d = '\0';
- sv_setpvn(sv, dstart, d - dstart);
+ sv_setpvn(sv, (const char*)dstart, d - dstart);
SvSETMAGIC(sv);
if (isutf)
SvUTF8_on(sv);