[Python-checkins] cpython: Fix stale comment.

stefan.krah python-checkins at python.org
Tue Apr 10 23:16:57 CEST 2012


http://hg.python.org/cpython/rev/155c735f1f6f
changeset:   76230:155c735f1f6f
user:        Stefan Krah <skrah at bytereef.org>
date:        Tue Apr 10 23:08:29 2012 +0200
summary:
  Fix stale comment.

files:
  Modules/_decimal/libmpdec/mpdecimal.c |  7 ++++---
  1 files changed, 4 insertions(+), 3 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
@@ -458,6 +458,9 @@
  *     1) MPD_MINALLOC <= result->alloc.
  *     2) 0 <= result->len <= result->alloc.
  *
+ * Case nwords == result->alloc:
+ *     'result' is unchanged. Return 1.
+ *
  * Case nwords > result->alloc:
  *   Case realloc success:
  *     The value of 'result' does not change. Return 1.
@@ -465,13 +468,11 @@
  *     'result' is NaN, status is updated with MPD_Malloc_error. Return 0.
  *
  * Case nwords < result->alloc:
- *   Case is_static_data or nwords < MPD_MINALLOC or realloc failure [1]:
+ *   Case is_static_data or realloc failure [1]:
  *     'result' is unchanged. Return 1.
  *   Case realloc success:
  *     The value of result is undefined (expected). Return 1.
  *
- * Case nwords == result->alloc:
- *     'result' is unchanged. Return 1.
  *
  * [1] In that case the old (now oversized) area is still valid.
  */

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list