summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-07-09 15:44:17 +0000
committerNicholas Clark <nick@ccl4.org>2005-07-09 15:44:17 +0000
commitf4eee32fe43c252f7ee773e7ba8b0e6d1793cdce (patch)
tree0270c5d7219ffd384e934ece8585cc278346b59c /sv.c
parenta02a5408b2f199007c4dcb74559cc79066307ada (diff)
downloadperl-f4eee32fe43c252f7ee773e7ba8b0e6d1793cdce.tar.gz
sv_dec is supposed to go *down*, m'kay.
p4raw-id: //depot/perl@25102
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 268cb3a3b4..99e456e8ee 100644
--- a/sv.c
+++ b/sv.c
@@ -7067,7 +7067,7 @@ Perl_sv_dec(pTHX_ register SV *sv)
}
else {
(void)SvIOK_only_UV(sv);
- SvUV_set(sv, SvUVX(sv) + 1);
+ SvUV_set(sv, SvUVX(sv) - 1);
}
} else {
if (SvIVX(sv) == IV_MIN)