One more SvPV_const
Nicholas Clark [Wed, 8 Jun 2005 09:09:52 +0000 (09:09 +0000)]
p4raw-id: //depot/perl@24752

pp.c

diff --git a/pp.c b/pp.c
index 8c50719..4feb59d 100644 (file)
--- a/pp.c
+++ b/pp.c
@@ -2358,7 +2358,7 @@ PP(pp_negate)
            SETn(-SvNV(sv));
        else if (SvPOKp(sv)) {
            STRLEN len;
-           char *s = SvPV(sv, len);
+           const char *s = SvPV_const(sv, len);
            if (isIDFIRST(*s)) {
                sv_setpvn(TARG, "-", 1);
                sv_catsv(TARG, sv);