File tree Expand file tree Collapse file tree
Modules/_decimal/libmpdec Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments