[pypy-commit] pypy fix-result-types: small cleanup
rlamy
noreply at buildbot.pypy.org
Tue May 19 19:07:30 CEST 2015
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: fix-result-types
Changeset: r77397:96ab92ae57a9
Date: 2015-05-19 18:07 +0100
http://bitbucket.org/pypy/pypy/changeset/96ab92ae57a9/
Log: small cleanup
diff --git a/pypy/module/micronumpy/ufuncs.py b/pypy/module/micronumpy/ufuncs.py
--- a/pypy/module/micronumpy/ufuncs.py
+++ b/pypy/module/micronumpy/ufuncs.py
@@ -21,7 +21,6 @@
get_storage_as_int, is_rhs_priority_higher)
from .casting import can_cast_type, find_result_type
from .boxes import W_GenericBox, W_ObjectBox
-from .types import Long
def done_if_true(dtype, val):
return dtype.itemtype.bool(val)
@@ -265,7 +264,7 @@
self.promote_to_largest):
if obj_dtype.is_bool():
num = NPY.LONG
- elif obj_dtype.elsize < Long(space).get_element_size():
+ elif obj_dtype.elsize * 8 < LONG_BIT:
if obj_dtype.is_unsigned():
num = NPY.ULONG
else:
More information about the pypy-commit
mailing list