summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-04-21 11:42:43 +0000
committerNicholas Clark <nick@ccl4.org>2007-04-21 11:42:43 +0000
commit4ea561bc94841f378b6950ed75b669dc60767dfa (patch)
tree7a76995aa0b9fd27756ad182df7d997dd06c953c /pp_sys.c
parent25270bc0b7409c7dbdeef1a6ec0b548e2d3e51a1 (diff)
downloadperl-4ea561bc94841f378b6950ed75b669dc60767dfa.tar.gz
Where possible, use SvIV instead of SvIVX, SvNV instead of SvNVX,
SvUV instead of SvUVX, and SvPV* variants instead of SvPVX*. Document that the non-x variants are preferable whenever the expression has no side effects. (Compilers perform common subexression elimination). Likewise SvREFCNT_inc simple variants are valid for all cases apart from expressions with side effects. p4raw-id: //depot/perl@31010
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index aa36bef9aa..4fc8196d46 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -3416,7 +3416,7 @@ PP(pp_chdir)
gv = (GV*)SvRV(sv);
}
else {
- tmps = SvPVx_nolen_const(sv);
+ tmps = SvPV_nolen_const(sv);
}
}