Mercurial > vim
diff src/fileio.c @ 29442:827d9f2b7a71 v9.0.0063
patch 9.0.0063: too many type casts for dict_get functions
Commit: https://github.com/vim/vim/commit/d61efa50f8f5b9d9dcbc136705cc33874f0fdcb3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 23 09:52:04 2022 +0100
patch 9.0.0063: too many type casts for dict_get functions
Problem: Too many type casts for dict_get functions.
Solution: Change the key argument from "char_u *" to "char *".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 23 Jul 2022 11:00:04 +0200 |
parents | d2ef7d649fcb |
children | 89e1d67814a9 |
line wrap: on
line diff
--- a/src/fileio.c +++ b/src/fileio.c @@ -4746,8 +4746,8 @@ compare_readdirex_item(const void *p1, c { char_u *name1, *name2; - name1 = dict_get_string(*(dict_T**)p1, (char_u*)"name", FALSE); - name2 = dict_get_string(*(dict_T**)p2, (char_u*)"name", FALSE); + name1 = dict_get_string(*(dict_T**)p1, "name", FALSE); + name2 = dict_get_string(*(dict_T**)p2, "name", FALSE); if (readdirex_sort == READDIR_SORT_BYTE) return STRCMP(name1, name2); else if (readdirex_sort == READDIR_SORT_IC)