summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2005-04-07 08:51:49 -0500
committerNicholas Clark <nick@ccl4.org>2005-04-08 11:29:22 +0000
commit45977657b0fa2c29b268b817f40e6b295a501d39 (patch)
tree60bae3828a7280d4a28993fc2e4376977bae5fcd /pp.c
parentf599b64b5d5d221c90b5f40eb5ad167f16c1822c (diff)
downloadperl-45977657b0fa2c29b268b817f40e6b295a501d39.tar.gz
Refactoring to Sv*_set() macros - patch #2
Message-ID: <20050407185149.GA4418@mccoy.peters.homeunix.org> p4raw-id: //depot/perl@24204
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pp.c b/pp.c
index 37b0c31a9b..8d1012b6e4 100644
--- a/pp.c
+++ b/pp.c
@@ -844,7 +844,7 @@ PP(pp_predec)
if (!SvREADONLY(TOPs) && SvIOK_notUV(TOPs) && !SvNOK(TOPs) && !SvPOK(TOPs)
&& SvIVX(TOPs) != IV_MIN)
{
- --SvIVX(TOPs);
+ SvIV_set(TOPs, SvIVX(TOPs) - 1);
SvFLAGS(TOPs) &= ~(SVp_NOK|SVp_POK);
}
else
@@ -862,7 +862,7 @@ PP(pp_postinc)
if (!SvREADONLY(TOPs) && SvIOK_notUV(TOPs) && !SvNOK(TOPs) && !SvPOK(TOPs)
&& SvIVX(TOPs) != IV_MAX)
{
- ++SvIVX(TOPs);
+ SvIV_set(TOPs, SvIVX(TOPs) + 1);
SvFLAGS(TOPs) &= ~(SVp_NOK|SVp_POK);
}
else
@@ -884,7 +884,7 @@ PP(pp_postdec)
if (!SvREADONLY(TOPs) && SvIOK_notUV(TOPs) && !SvNOK(TOPs) && !SvPOK(TOPs)
&& SvIVX(TOPs) != IV_MIN)
{
- --SvIVX(TOPs);
+ SvIV_set(TOPs, SvIVX(TOPs) - 1);
SvFLAGS(TOPs) &= ~(SVp_NOK|SVp_POK);
}
else