Author: Alex Gaynor <[email protected]>
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))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit