[pypy-svn] r10556 - pypy/dist/pypy/objspace/std
cfbolz at codespeak.net
cfbolz at codespeak.net
Tue Apr 12 18:38:22 CEST 2005
Author: cfbolz
Date: Tue Apr 12 18:38:22 2005
New Revision: 10556
Modified:
pypy/dist/pypy/objspace/std/longobject.py
Log:
Those aren't actually needed.
Modified: pypy/dist/pypy/objspace/std/longobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/longobject.py (original)
+++ pypy/dist/pypy/objspace/std/longobject.py Tue Apr 12 18:38:22 2005
@@ -310,7 +310,7 @@
break
m = m >> 1
j -= 1
-# assert highest_set_bit != LONG_BIT, "long not normalized"
+ assert highest_set_bit != LONG_BIT, "long not normalized"
j = 0
m = r_uint(1)
while j <= highest_set_bit:
@@ -537,13 +537,13 @@
j = 0
while j < size_b:
carry += z._getshort(i + j) + b._getshort(j) * f
- z._setshort(i + j, r_uint(carry & SHORT_MASK))
+ z._setshort(i + j, carry & SHORT_MASK)
carry = carry >> SHORT_BIT
j += 1
while carry != 0:
assert i + j < size_a + size_b
carry += z._getshort(i + j)
- z._setshort(i + j, r_uint(carry & SHORT_MASK))
+ z._setshort(i + j, carry & SHORT_MASK)
carry = carry >> SHORT_BIT
j += 1
i += 1
More information about the Pypy-commit
mailing list