Merge branch 'develop' into #3-issue-descrete-tests

This commit is contained in:
Gregory Lirent 2022-06-10 16:32:28 +03:00
commit a1a19a2c7b

View File

@ -34,7 +34,7 @@ void list_sort(list_t* x) {
lnode_t *p = l->prev;
for (lnode_t* c = l; c != r; c = c->next) {
if (lnode_compare(c, r) < 0) {
if (lnode_compare(c, r) <= 0) {
p = (is_null(p)) ? l : p->next;
lnode_swap(p, c);
}