summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-08 09:09:52 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-08 09:09:52 +0000
commit6f46942a96d669ad911580516a4c630bf04865ca (patch)
tree794951fc2e7352f7e630a956aa80294a5a74b351
parentc0e1089ae3d29de8c9817373e1b7f36eaf9a9cd8 (diff)
downloadperl-6f46942a96d669ad911580516a4c630bf04865ca.tar.gz
One more SvPV_const
p4raw-id: //depot/perl@24752
-rw-r--r--pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index 8c50719196..4feb59d8f7 100644
--- 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);