Change 34313 by [EMAIL PROTECTED] on 2008/09/07 22:03:35
Add 3 casts to keep the compiler happy with the Bowlderised 5.8.x API.
(no adding of 'const')
Affected files ...
... //depot/maint-5.8/perl/pp_ctl.c#193 edit
Differences ...
==== //depot/maint-5.8/perl/pp_ctl.c#193 (text) ====
Index: perl/pp_ctl.c
--- perl/pp_ctl.c#192~34298~ 2008-09-06 07:47:42.000000000 -0700
+++ perl/pp_ctl.c 2008-09-07 15:03:35.000000000 -0700
@@ -712,7 +712,7 @@
}
}
if (targ_is_utf8 && !item_is_utf8) {
- source = tmp = bytes_to_utf8(source, &to_copy);
+ source = tmp = bytes_to_utf8((U8 *)source, &to_copy);
SvCUR_set(PL_formtarget,
t - SvPVX_const(PL_formtarget));
} else {
@@ -744,7 +744,8 @@
/* Mustn't call sv_pos_b2u() as it does a second
mg_get(). Is this a bug? Do we need a _flags()
variant? */
- itemsize = utf8_length(source, source + itemsize);
+ itemsize = utf8_length((U8 *)source,
+ (U8 *)source + itemsize);
} else {
sv_pos_b2u(sv, &itemsize);
}
End of Patch.