From: Vincent Pit Date: Fri, 27 Nov 2009 11:16:16 +0000 (+0100) Subject: Fix a consting error X-Git-Tag: v0.39~12 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=60b96f4d5dcee8c38e8b8c8db36dae2d7d693350;p=perl%2Fmodules%2FVariable-Magic.git Fix a consting error --- diff --git a/Magic.xs b/Magic.xs index 70b2617..251fc3c 100644 --- a/Magic.xs +++ b/Magic.xs @@ -1005,7 +1005,7 @@ STATIC U32 vmg_svt_len(pTHX_ SV *sv, MAGIC *mg) { PUSHs(mg->mg_obj ? mg->mg_obj : &PL_sv_undef); if (t < SVt_PVAV) { STRLEN l; - U8 *s = (U8 *) SvPV_const(sv, l); + const U8 *s = (const U8 *) SvPV_const(sv, l); if (DO_UTF8(sv)) len = utf8_length(s, s + l); else