aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/cmdexpand.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-10-03 00:19:30 +0200
committerGitHub <noreply@github.com>2023-10-03 06:19:30 +0800
commitfd791db0ecebf5d5bf8922ba519f8dd4eef3c5e6 (patch)
tree2feed1649c6cc6c15ce0eec05559484c023d15aa /src/nvim/cmdexpand.c
parenteb1f0e8fcca756a00d287e23bf87554e0e7f6dfd (diff)
downloadrneovim-fd791db0ecebf5d5bf8922ba519f8dd4eef3c5e6.tar.gz
rneovim-fd791db0ecebf5d5bf8922ba519f8dd4eef3c5e6.tar.bz2
rneovim-fd791db0ecebf5d5bf8922ba519f8dd4eef3c5e6.zip
fix: fix ASAN errors on clang 17 (#25469)
Diffstat (limited to 'src/nvim/cmdexpand.c')
-rw-r--r--src/nvim/cmdexpand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/cmdexpand.c b/src/nvim/cmdexpand.c
index 893deadd13..c2469b6574 100644
--- a/src/nvim/cmdexpand.c
+++ b/src/nvim/cmdexpand.c
@@ -3078,7 +3078,7 @@ static int ExpandUserDefined(const char *const pat, expand_T *xp, regmatch_T *re
*matches = NULL;
*numMatches = 0;
- char *const retstr = call_user_expand_func((user_expand_func_T)call_func_retstr, xp);
+ char *const retstr = call_user_expand_func(call_func_retstr, xp);
if (retstr == NULL) {
return FAIL;
}
@@ -3150,7 +3150,7 @@ static int ExpandUserList(expand_T *xp, char ***matches, int *numMatches)
{
*matches = NULL;
*numMatches = 0;
- list_T *const retlist = call_user_expand_func((user_expand_func_T)call_func_retlist, xp);
+ list_T *const retlist = call_user_expand_func(call_func_retlist, xp);
if (retlist == NULL) {
return FAIL;
}