[Python-checkins] cpython: Fix comments and whitespace.

stefan.krah python-checkins at python.org
Wed Apr 18 19:02:20 CEST 2012


http://hg.python.org/cpython/rev/5a485cf7da8d
changeset: 76400:5a485cf7da8d
user: Stefan Krah <skrah at bytereef.org>
date: Wed Apr 18 18:08:20 2012 +0200
summary:
 Fix comments and whitespace.
files:
 Modules/_decimal/libmpdec/mpdecimal.c | 16 +++++++-------
 1 files changed, 8 insertions(+), 8 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
@@ -2484,7 +2484,7 @@
 }
 result->data[i++] = z;
 
- /* scan the rest of y for digit > 1 */
+ /* scan the rest of y for digits > 1 */
 for (; k < MPD_RDIGITS; k++) {
 ybit = y % 10;
 y /= 10;
@@ -2492,7 +2492,7 @@
 goto invalid_operation;
 }
 }
- /* scan the rest of big for digit > 1 */
+ /* scan the rest of big for digits > 1 */
 for (; i < big->len; i++) {
 y = big->data[i];
 for (k = 0; k < MPD_RDIGITS; k++) {
@@ -2571,7 +2571,7 @@
 }
 
 for (i = 0; i < len; i++) {
- x = (i < a->len) ? a->data[i] : 0;
+ x = (i < a->len) ? a->data[i] : 0;
 z = 0;
 for (k = 0; k < MPD_RDIGITS; k++) {
 xbit = x % 10;
@@ -2674,7 +2674,7 @@
 z += (xbit|ybit) ? mpd_pow10[k] : 0;
 }
 
- /* scan and copy the rest of y for digit > 1 */
+ /* scan for digits > 1 and copy the rest of y */
 for (; k < MPD_RDIGITS; k++) {
 ybit = y % 10;
 y /= 10;
@@ -2684,7 +2684,7 @@
 z += ybit*mpd_pow10[k];
 }
 result->data[i++] = z;
- /* scan and copy the rest of big for digit > 1 */
+ /* scan for digits > 1 and copy the rest of big */
 for (; i < big->len; i++) {
 y = big->data[i];
 for (k = 0; k < MPD_RDIGITS; k++) {
@@ -2710,7 +2710,7 @@
 }
 
 /*
- * Rotate the coefficient of a by b->data digits. b must be an integer with
+ * Rotate the coefficient of 'a' by 'b' digits. 'b' must be an integer with
 * exponent 0.
 */
 void
@@ -2993,7 +2993,7 @@
 z += (xbit^ybit) ? mpd_pow10[k] : 0;
 }
 
- /* scan and copy the rest of y for digit > 1 */
+ /* scan for digits > 1 and copy the rest of y */
 for (; k < MPD_RDIGITS; k++) {
 ybit = y % 10;
 y /= 10;
@@ -3003,7 +3003,7 @@
 z += ybit*mpd_pow10[k];
 }
 result->data[i++] = z;
- /* scan and copy the rest of big for digit > 1 */
+ /* scan for digits > 1 and copy the rest of big */
 for (; i < big->len; i++) {
 y = big->data[i];
 for (k = 0; k < MPD_RDIGITS; k++) {
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /