mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
eval.c: Fix linter errors.
This commit is contained in:
@@ -15213,7 +15213,7 @@ static int item_compare2(const void *s1, const void *s2, bool keep_zero)
|
|||||||
rettv.v_type = VAR_UNKNOWN; // clear_tv() uses this
|
rettv.v_type = VAR_UNKNOWN; // clear_tv() uses this
|
||||||
res = call_func(sortinfo->item_compare_func,
|
res = call_func(sortinfo->item_compare_func,
|
||||||
(int)STRLEN(sortinfo->item_compare_func),
|
(int)STRLEN(sortinfo->item_compare_func),
|
||||||
&rettv, 2, argv, 0L, 0L, &dummy, TRUE,
|
&rettv, 2, argv, 0L, 0L, &dummy, true,
|
||||||
sortinfo->item_compare_selfdict);
|
sortinfo->item_compare_selfdict);
|
||||||
clear_tv(&argv[0]);
|
clear_tv(&argv[0]);
|
||||||
clear_tv(&argv[1]);
|
clear_tv(&argv[1]);
|
||||||
@@ -15362,8 +15362,9 @@ static void do_sort_uniq(typval_T *argvars, typval_T *rettv, bool sort)
|
|||||||
} else {
|
} else {
|
||||||
// Sort the array with item pointers.
|
// Sort the array with item pointers.
|
||||||
qsort(ptrs, (size_t)len, sizeof (sortItem_T),
|
qsort(ptrs, (size_t)len, sizeof (sortItem_T),
|
||||||
info.item_compare_func == NULL ? item_compare_not_keeping_zero :
|
(info.item_compare_func == NULL ?
|
||||||
item_compare2_not_keeping_zero);
|
item_compare_not_keeping_zero :
|
||||||
|
item_compare2_not_keeping_zero));
|
||||||
|
|
||||||
if (!info.item_compare_func_err) {
|
if (!info.item_compare_func_err) {
|
||||||
// Clear the list and append the items in the sorted order.
|
// Clear the list and append the items in the sorted order.
|
||||||
|
Reference in New Issue
Block a user