mirror of
https://github.com/mpv-player/mpv
synced 2024-12-21 22:30:22 +00:00
ta: fix comment
If this function could return the input value (i.e. the == case was correct), then macros like MP_GROW_ARRAY would have been incorrect. The implementation was correct though, so there's no bug.
This commit is contained in:
parent
7dae316d50
commit
82648ff229
@ -32,7 +32,7 @@ size_t ta_calc_array_size(size_t element_size, size_t count)
|
||||
|
||||
// This is used when an array has to be enlarged for appending new elements.
|
||||
// Return a "good" size for the new array (in number of elements). This returns
|
||||
// a value >= nextidx, unless the calculation overflows, in which case SIZE_MAX
|
||||
// a value > nextidx, unless the calculation overflows, in which case SIZE_MAX
|
||||
// is returned.
|
||||
size_t ta_calc_prealloc_elems(size_t nextidx)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user