pp_ne() needs a boolean, not an integer.
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 28 Mar 2001 15:09:23 +0000 (15:09 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 28 Mar 2001 15:09:23 +0000 (15:09 +0000)
p4raw-id: //depot/perl@9404

pp.c

diff --git a/pp.c b/pp.c
index 4d45db4..f7f89e1 100644 (file)
--- a/pp.c
+++ b/pp.c
@@ -1713,10 +1713,10 @@ PP(pp_ge)
 
 PP(pp_ne)
 {
-    dSP; dTARGET; tryAMAGICbinSET(ne,0);
+    dSP; tryAMAGICbinSET(ne,0);
 #ifndef NV_PRESERVES_UV
     if (SvROK(TOPs) && SvROK(TOPm1s)) {
-       SETi(PTR2UV(SvRV(TOPs)) - PTR2UV(SvRV(TOPm1s)));
+       SETs(boolSV(SvRV(TOPs) == SvRV(TOPm1s)));
        RETURN;
     }
 #endif