Author: Amaury Forgeot d'Arc <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit