[pypy-commit] pypy default: compare with a constant here instead of name
bdkearns
noreply at buildbot.pypy.org
Sun Feb 23 22:26:44 CET 2014
Author: Brian Kearns <bdkearns at gmail.com>
Branch:
Changeset: r69301:f3d4ec29ecfc
Date: 2014-02-23 16:25 -0500
http://bitbucket.org/pypy/pypy/changeset/f3d4ec29ecfc/
Log: compare with a constant here instead of name
diff --git a/pypy/module/micronumpy/interp_ufuncs.py b/pypy/module/micronumpy/interp_ufuncs.py
--- a/pypy/module/micronumpy/interp_ufuncs.py
+++ b/pypy/module/micronumpy/interp_ufuncs.py
@@ -312,7 +312,7 @@
else:
res_dtype = calc_dtype
if self.complex_to_float and calc_dtype.is_complex_type():
- if calc_dtype.name == 'complex64':
+ if calc_dtype.num == NPY.CFLOAT:
res_dtype = interp_dtype.get_dtype_cache(space).w_float32dtype
else:
res_dtype = interp_dtype.get_dtype_cache(space).w_float64dtype
More information about the pypy-commit
mailing list