mirror of
https://git.telodendria.io/Telodendria/Cytoplasm.git
synced 2024-11-22 04:00:47 +03:00
parent
5d87da31cd
commit
346b912a06
2 changed files with 5 additions and 2 deletions
|
@ -19,6 +19,8 @@ are not even initialized to a default value.
|
||||||
specific circumstances.
|
specific circumstances.
|
||||||
- Added `JsonMerge()` to the JSON API to merge two JSON objects together.
|
- Added `JsonMerge()` to the JSON API to merge two JSON objects together.
|
||||||
- Make `HttpRouter` decode path parts before matching them on regular expressions.
|
- Make `HttpRouter` decode path parts before matching them on regular expressions.
|
||||||
|
- Fixed a bug in `ArraySort()` that would crash programs if the passed array has no
|
||||||
|
elements.
|
||||||
|
|
||||||
## v0.4.0
|
## v0.4.0
|
||||||
|
|
||||||
|
|
|
@ -267,8 +267,9 @@ ArrayQuickSort(Array * array, size_t low, size_t high, int (*compare) (void *, v
|
||||||
void
|
void
|
||||||
ArraySort(Array * array, int (*compare) (void *, void *))
|
ArraySort(Array * array, int (*compare) (void *, void *))
|
||||||
{
|
{
|
||||||
if (!array)
|
if (!ArraySize(array))
|
||||||
{
|
{
|
||||||
|
// If a NULL ptr was given, or the array has no elements, do nothing.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ArrayQuickSort(array, 0, array->size - 1, compare);
|
ArrayQuickSort(array, 0, array->size - 1, compare);
|
||||||
|
|
Loading…
Reference in a new issue