summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-03-28 14:21:00 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-03-28 14:21:00 +0000
commit3bb2c41528eaee159711f1f3c8caee43068ec4f6 (patch)
tree19c18bd6ba17906251eb055c8d2a09f60f064bd3 /pp.c
parente822bc79939bd118df13b37c051c40f47f9ae5c6 (diff)
downloadperl-3bb2c41528eaee159711f1f3c8caee43068ec4f6.tar.gz
Extend the SvROK() testing also to pp_ne(), pointed out by
Andreas Schwab. p4raw-id: //depot/perl@9399
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pp.c b/pp.c
index a79a1d4cb2..769b505277 100644
--- a/pp.c
+++ b/pp.c
@@ -1714,6 +1714,12 @@ PP(pp_ge)
PP(pp_ne)
{
dSP; tryAMAGICbinSET(ne,0);
+#ifndef NV_PRESERVES_UV
+ if (SvROK(TOPs) && SvROK(TOPm1s)) {
+ SETi(PTR2UV(SvRV(TOPs)) - PTR2UV(SvRV(TOPm1s)));
+ RETURN;
+ }
+#endif
#ifdef PERL_PRESERVE_IVUV
SvIV_please(TOPs);
if (SvIOK(TOPs)) {