diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-03-28 14:21:00 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-03-28 14:21:00 +0000 |
commit | 3bb2c41528eaee159711f1f3c8caee43068ec4f6 (patch) | |
tree | 19c18bd6ba17906251eb055c8d2a09f60f064bd3 /pp.c | |
parent | e822bc79939bd118df13b37c051c40f47f9ae5c6 (diff) | |
download | perl-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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)) { |