summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-04-08 09:08:02 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-04-08 09:08:02 -0700
commit85935d8e7bc504b57c9aea69973920ebe632631d (patch)
tree82c229e8eaafac84073041146672162488a3458b /pp.c
parent43fc90f5c25f6dcb07febda8166d26118d6ca29c (diff)
downloadperl-85935d8e7bc504b57c9aea69973920ebe632631d.tar.gz
Revert "[perl #87708] $tied / $tied under use integer"
This reverts most of commit 76422f81b675011beffbdb66c981a36b6fbf4a6b. It is now unnecessary as of commit 75ea7a1.
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pp.c b/pp.c
index 941cc9d31a..9858f91b48 100644
--- a/pp.c
+++ b/pp.c
@@ -2846,14 +2846,15 @@ PP(pp_i_multiply)
PP(pp_i_divide)
{
+ IV num;
dVAR; dSP; dATARGET;
tryAMAGICbin_MG(div_amg, AMGf_assign);
{
dPOPTOPssrl;
- IV num = SvIV_nomg(left);
- IV value = left==right ? SvIV(right) : SvIV_nomg(right);
+ IV value = SvIV_nomg(right);
if (value == 0)
DIE(aTHX_ "Illegal division by zero");
+ num = SvIV_nomg(left);
/* avoid FPE_INTOVF on some platforms when num is IV_MIN */
if (value == -1)