[pypy-commit] pypy numpy-dtype-alt: translation fix

alex_gaynor noreply at buildbot.pypy.org
Wed Aug 24 03:25:54 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: numpy-dtype-alt
Changeset: r46755:6fb999c351d6
Date: 2011-08-23 21:04 -0400
http://bitbucket.org/pypy/pypy/changeset/6fb999c351d6/

Log:	translation fix

diff --git a/pypy/module/micronumpy/interp_dtype.py b/pypy/module/micronumpy/interp_dtype.py
--- a/pypy/module/micronumpy/interp_dtype.py
+++ b/pypy/module/micronumpy/interp_dtype.py
@@ -148,7 +148,7 @@
         return max(v1, v2)
 
     def bool(self, v):
-        return bool(self.unbox(v))
+        return bool(self.for_computation(self.unbox(v)))
     def ne(self, v1, v2):
         return self.for_computation(self.unbox(v1)) != self.for_computation(self.unbox(v2))
 


More information about the pypy-commit mailing list