summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-05-21 17:07:40 +0100
committerDavid Mitchell <davem@iabyn.com>2010-05-21 17:07:40 +0100
commited3b9b3c212f717939207379cdb328156dd4a01e (patch)
tree354c7d708fca92ba462cac40b28221ab29015dfc /pp_hot.c
parent6f1401dc2acd2a2b85df22b0a74e5f7e6e0a33aa (diff)
downloadperl-ed3b9b3c212f717939207379cdb328156dd4a01e.tar.gz
followup to magic/overload fix
6f1401dc2acd2a2b85df22b0a74e5f7e6e0a33aa was over-enthusiastic on removing redundant code in the comparison ops. This code was only used on 64-bit #ifdef branches which is why I failed to spot it earlier. So restore that code!
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 52d0d8daf8..edc48547c0 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -332,7 +332,7 @@ PP(pp_eq)
dVAR; dSP;
tryAMAGICbin_MG(eq_amg, AMGf_set);
#ifndef NV_PRESERVES_UV
- if (SvROK(TOPs) && SvROK(TOPm1s)) {
+ if (SvROK(TOPs) && !SvAMAGIC(TOPs) && SvROK(TOPm1s) && !SvAMAGIC(TOPm1s)) {
SP--;
SETs(boolSV(SvRV(TOPs) == SvRV(TOPp1s)));
RETURN;