]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Do not clobber existing flags.
authorStefan Krah <skrah@bytereef.org>
Thu, 31 May 2012 13:09:27 +0000 (15:09 +0200)
committerStefan Krah <skrah@bytereef.org>
Thu, 31 May 2012 13:09:27 +0000 (15:09 +0200)
Modules/_decimal/libmpdec/mpdecimal.c

index 5083710ecf5845390dfbe0b06b66877849e94a81..3f43db43674d8813a9c09d364b9329a7880a7cfd 100644 (file)
@@ -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;
     }