summaryrefslogtreecommitdiffstats
path: root/Modules/_decimal
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2012-04-10 21:08:29 (GMT)
committerStefan Krah <skrah@bytereef.org>2012-04-10 21:08:29 (GMT)
commit7b544ca08d6daa4d0b30aee6fab9a5f71540adaa (patch)
tree3aa71923963c09eac6b9eb46b36cfe7a73cd2410 /Modules/_decimal
parent61d85bab4d128a687bcf03704a861578caed8239 (diff)
downloadcpython-7b544ca08d6daa4d0b30aee6fab9a5f71540adaa.zip
cpython-7b544ca08d6daa4d0b30aee6fab9a5f71540adaa.tar.gz
cpython-7b544ca08d6daa4d0b30aee6fab9a5f71540adaa.tar.bz2
Fix stale comment.
Diffstat (limited to 'Modules/_decimal')
-rw-r--r--Modules/_decimal/libmpdec/mpdecimal.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Modules/_decimal/libmpdec/mpdecimal.c b/Modules/_decimal/libmpdec/mpdecimal.c
index fc2ac40..b83334e 100644
--- a/Modules/_decimal/libmpdec/mpdecimal.c
+++ b/Modules/_decimal/libmpdec/mpdecimal.c
@@ -458,6 +458,9 @@ mpd_del(mpd_t *dec)
* 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 @@ mpd_del(mpd_t *dec)
* '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.
*/