Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7b544ca

Browse files
author
Stefan Krah
committed
Fix stale comment.
1 parent 61d85ba commit 7b544ca

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Modules/_decimal/libmpdec/mpdecimal.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,20 +458,21 @@ mpd_del(mpd_t *dec)
458458
* 1) MPD_MINALLOC <= result->alloc.
459459
* 2) 0 <= result->len <= result->alloc.
460460
*
461+
* Case nwords == result->alloc:
462+
* 'result' is unchanged. Return 1.
463+
*
461464
* Case nwords > result->alloc:
462465
* Case realloc success:
463466
* The value of 'result' does not change. Return 1.
464467
* Case realloc failure:
465468
* 'result' is NaN, status is updated with MPD_Malloc_error. Return 0.
466469
*
467470
* Case nwords < result->alloc:
468-
* Case is_static_data or nwords < MPD_MINALLOC or realloc failure [1]:
471+
* Case is_static_data or realloc failure [1]:
469472
* 'result' is unchanged. Return 1.
470473
* Case realloc success:
471474
* The value of result is undefined (expected). Return 1.
472475
*
473-
* Case nwords == result->alloc:
474-
* 'result' is unchanged. Return 1.
475476
*
476477
* [1] In that case the old (now oversized) area is still valid.
477478
*/

0 commit comments

Comments
 (0)