From: Stefan Krah Date: Thu, 31 May 2012 13:09:27 +0000 (+0200) Subject: Do not clobber existing flags. X-Git-Tag: v3.3.0b1~335 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=30c35e8154dca64dace48c25d2b0204108e6d0bb;p=thirdparty%2FPython%2Fcpython.git Do not clobber existing flags. --- diff --git a/Modules/_decimal/libmpdec/mpdecimal.c b/Modules/_decimal/libmpdec/mpdecimal.c index 5083710ecf58..3f43db43674d 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; }