summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-04-20 19:23:11 (GMT)
committerBrett Cannon <brett@python.org>2012-04-20 19:23:11 (GMT)
commitfe3c62967bc67209519b5b46b580fd4375ca2784 (patch)
tree97f1561bae954721276ea5fb9f7364db55d85421
parentf0434e647aa3e7b82a740be4a820aec951a885ac (diff)
parent9d3a5aeabe79879c54675b1b929447160c9c4f1c (diff)
downloadcpython-fe3c62967bc67209519b5b46b580fd4375ca2784.zip
cpython-fe3c62967bc67209519b5b46b580fd4375ca2784.tar.gz
cpython-fe3c62967bc67209519b5b46b580fd4375ca2784.tar.bz2
merge
-rw-r--r--Modules/_decimal/libmpdec/mpdecimal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_decimal/libmpdec/mpdecimal.c b/Modules/_decimal/libmpdec/mpdecimal.c
index d6937bd..52df947 100644
--- a/Modules/_decimal/libmpdec/mpdecimal.c
+++ b/Modules/_decimal/libmpdec/mpdecimal.c
@@ -3530,6 +3530,7 @@ _mpd_qdiv(int action, mpd_t *q, const mpd_t *a, const mpd_t *b,
MPD_NEW_STATIC(r,0,0,0,0);
_mpd_base_ndivmod(q, &r, a, b, status);
if (mpd_isspecial(q) || mpd_isspecial(&r)) {
+ mpd_setspecial(q, MPD_POS, MPD_NAN);
mpd_del(&r);
goto finish;
}