[pypy-commit] pypy default: Fix a bug that makes translation fails sometimes

rguillebert noreply at buildbot.pypy.org
Tue Aug 20 17:08:24 CEST 2013


Author: Romain Guillebert <romain.py at gmail.com>
Branch: 
Changeset: r66267:0ce8426280c8
Date: 2013-08-20 17:07 +0200
http://bitbucket.org/pypy/pypy/changeset/0ce8426280c8/

Log:	Fix a bug that makes translation fails sometimes

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
@@ -309,8 +309,8 @@
 
     @simple_unary_op
     def rint(self, v):
-        if isfinite(v):
-            return rfloat.round_double(v, 0, half_even=True)
+        if isfinite(float(v)):
+            return rfloat.round_double(float(v), 0, half_even=True)
         else:
             return v
 


More information about the pypy-commit mailing list