Merge branch '#12-issue' of lirent/libcdsb into develop
This commit is contained in:
commit
df7307739e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user