Author: Brian Kearns <bdkea...@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 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit