]> Kevux Git Server - fll/commit
Update: Change f_memory_array_increase() and f_memory_array_increase_by() design.
authorKevin Day <Kevin@kevux.org>
Sat, 15 Jun 2024 03:21:54 +0000 (22:21 -0500)
committerKevin Day <Kevin@kevux.org>
Sat, 15 Jun 2024 03:21:54 +0000 (22:21 -0500)
commit6b002e7c6adc75fb3467d36ea970e7c281aca743
treef58734110915f206de5f2f98269f13d8a075cb74
parenteec6e04bd4ec4b5158ed126c11ce5e1da9d39a6f
Update: Change f_memory_array_increase() and f_memory_array_increase_by() design.

Don't bother setting the *used size to F_number_t_size_unsigned_d on large size.
Instead, just return an error of F_array_too_large.

Add an unsigned overflow check such that if the increment results in an overflow, then the resulting length will be smaller than the original length.

Update the documentation comments.
level_0/f_memory/c/memory/array.c
level_0/f_memory/c/memory/array.h