[Python-checkins] r79551 - python/branches/py3k-cdecimal/Modules/cdecimal/mpdecimal.c

stefan.krah python-checkins at python.org
Thu Apr 1 11:53:21 CEST 2010


Author: stefan.krah
Date: Thu Apr  1 11:53:21 2010
New Revision: 79551

Log:
_mpd_qround_to_integral() must preserve excess digits.

Modified:
   python/branches/py3k-cdecimal/Modules/cdecimal/mpdecimal.c

Modified: python/branches/py3k-cdecimal/Modules/cdecimal/mpdecimal.c
==============================================================================
--- python/branches/py3k-cdecimal/Modules/cdecimal/mpdecimal.c	(original)
+++ python/branches/py3k-cdecimal/Modules/cdecimal/mpdecimal.c	Thu Apr  1 11:53:21 2010
@@ -6204,7 +6204,7 @@
 	result->exp = 0;
 
 	if (action == TO_INT_EXACT || action == TO_INT_SILENT) {
-		_mpd_apply_round(result, rnd, ctx, status);
+		_mpd_apply_round_excess(result, rnd, ctx, status);
 		if (action == TO_INT_EXACT) {
 			*status |= MPD_Rounded;
 			if (rnd) {


More information about the Python-checkins mailing list