[pypy-commit] pypy py3.3: Fix test_numeric_tower.
amauryfa
noreply at buildbot.pypy.org
Mon Mar 16 01:16:13 CET 2015
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3.3
Changeset: r76388:e7a9dfa4ec76
Date: 2015-03-11 16:12 +0100
http://bitbucket.org/pypy/pypy/changeset/e7a9dfa4ec76/
Log: Fix test_numeric_tower. Probably an overlook in CPython _decimal.c
diff --git a/lib_pypy/_decimal.py b/lib_pypy/_decimal.py
--- a/lib_pypy/_decimal.py
+++ b/lib_pypy/_decimal.py
@@ -750,7 +750,8 @@
with _CatchStatus(context) as (ctx, status_ptr):
_mpdec.mpd_qmul(multiplied._mpd, vv, denom._mpd,
ctx, status_ptr)
- multiplied._mpd.exp = exp
+ multiplied._mpd.exp += exp # XXX probably a bug
+ # in _decimal.c
finally:
_mpdec.mpd_del(vv)
More information about the pypy-commit
mailing list