diff options
Diffstat (limited to 'e-util/e-sorter-array.c')
-rw-r--r-- | e-util/e-sorter-array.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/e-util/e-sorter-array.c b/e-util/e-sorter-array.c index 39f3e61fa8..71cd1d83b2 100644 --- a/e-util/e-sorter-array.c +++ b/e-util/e-sorter-array.c @@ -204,8 +204,14 @@ e_sorter_array_append (ESorterArray *esa, gint count) for (i = 0; i < count; i++) { gint value = esa->rows; gsize pos; - e_bsearch (&value, esa->sorted, esa->rows, sizeof (gint), esort_callback, esa, &pos, NULL); - memmove (esa->sorted + pos + 1, esa->sorted + pos, sizeof (gint) * (esa->rows - pos)); + + e_bsearch ( + &value, esa->sorted, esa->rows, + sizeof (gint), esort_callback, esa, &pos, NULL); + memmove ( + esa->sorted + pos + 1, + esa->sorted + pos, + sizeof (gint) * (esa->rows - pos)); esa->sorted[pos] = value; esa->rows ++; } |