[pypy-commit] pypy py3k: hg backout 235bcc368b18

Manuel Jacob noreply at buildbot.pypy.org
Fri Feb 22 01:38:42 CET 2013


Author: Manuel Jacob
Branch: py3k
Changeset: r61576:fa5cde0dc7f0
Date: 2013-02-22 01:37 +0100
http://bitbucket.org/pypy/pypy/changeset/fa5cde0dc7f0/

Log:	hg backout 235bcc368b18

diff --git a/lib-python/3.2/decimal.py b/lib-python/3.2/decimal.py
--- a/lib-python/3.2/decimal.py
+++ b/lib-python/3.2/decimal.py
@@ -959,7 +959,7 @@
             exp_hash = pow(_PyHASH_10INV, -self._exp, _PyHASH_MODULUS)
         hash_ = int(self._int) * exp_hash % _PyHASH_MODULUS
         ans = hash_ if self >= 0 else -hash_
-        return ans
+        return -2 if ans == -1 else ans
 
     def as_tuple(self):
         """Represents the number as a triple tuple.


More information about the pypy-commit mailing list