summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2012-05-31 13:09:27 (GMT)
committerStefan Krah <skrah@bytereef.org>2012-05-31 13:09:27 (GMT)
commit30c35e8154dca64dace48c25d2b0204108e6d0bb (patch)
tree4cc5f203272a7ecdf4234703045fcab1c819e1ec /Modules
parentb7a455f326b903c20b54b9aa3b9fbb83c6897fc3 (diff)
downloadcpython-30c35e8154dca64dace48c25d2b0204108e6d0bb.zip
cpython-30c35e8154dca64dace48c25d2b0204108e6d0bb.tar.gz
cpython-30c35e8154dca64dace48c25d2b0204108e6d0bb.tar.bz2
Do not clobber existing flags.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_decimal/libmpdec/mpdecimal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_decimal/libmpdec/mpdecimal.c b/Modules/_decimal/libmpdec/mpdecimal.c
index 5083710..3f43db4 100644
--- a/Modules/_decimal/libmpdec/mpdecimal.c
+++ b/Modules/_decimal/libmpdec/mpdecimal.c
@@ -3904,7 +3904,7 @@ _mpd_qexp_check_one(mpd_t *result, const mpd_t *a, const mpd_context_t *ctx,
if (_mpd_cmp(&aa, &lim) <= 0) {
_settriple(result, 0, 1, 0);
_mpd_zeropad(result, ctx, status);
- *status = MPD_Rounded|MPD_Inexact;
+ *status |= MPD_Rounded|MPD_Inexact;
return 1;
}