This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
const-eight.diff
[perl5.git] / mg.c
diff --git a/mg.c b/mg.c
index b1830b1..f56812e 100644 (file)
--- a/mg.c
+++ b/mg.c
@@ -2489,7 +2489,7 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
        {
             union pstun un;
             s = SvPV(sv, len);
-            un.pst_command = s;
+            un.pst_command = (char *)s;
             pstat(PSTAT_SETCMD, un, len, 0, 0);
        }
 #endif