Author: Brian Kearns <[email protected]>
Branch: 
Changeset: r61811:eff360783265
Date: 2013-02-26 00:23 -0500
http://bitbucket.org/pypy/pypy/changeset/eff360783265/

Log:    lets try this instead, simpler

diff --git a/pypy/module/micronumpy/types.py b/pypy/module/micronumpy/types.py
--- a/pypy/module/micronumpy/types.py
+++ b/pypy/module/micronumpy/types.py
@@ -507,7 +507,9 @@
         if v == 0:
             # XXX good place to warn
             return -maxint
-        return rffi.cast(self.T, 1) / v
+        if v == 1 or v == -1:
+            return v
+        return 0
 
     @raw_unary_op
     def signbit(self, v):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to