[Python-checkins] cpython: Do not clobber existing flags.
stefan.krah
python-checkins at python.org
Thu May 31 15:22:17 CEST 2012
http://hg.python.org/cpython/rev/05097240ffb0
changeset: 77258:05097240ffb0
user: Stefan Krah <skrah at bytereef.org>
date: Thu May 31 15:09:27 2012 +0200
summary:
Do not clobber existing flags.
files:
Modules/_decimal/libmpdec/mpdecimal.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/_decimal/libmpdec/mpdecimal.c b/Modules/_decimal/libmpdec/mpdecimal.c
--- a/Modules/_decimal/libmpdec/mpdecimal.c
+++ b/Modules/_decimal/libmpdec/mpdecimal.c
@@ -3904,7 +3904,7 @@
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;
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list