Author: Romain Guillebert <romain...@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 _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit