Integrate change #9530 from maintperl into mainline.
[p5sagit/p5-mst-13.2.git] / pp.c
diff --git a/pp.c b/pp.c
index 769b505..fde8473 100644 (file)
--- a/pp.c
+++ b/pp.c
@@ -1716,7 +1716,7 @@ PP(pp_ne)
     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