aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/garray.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2021-10-12 17:52:54 +0200
committerGitHub <noreply@github.com>2021-10-12 17:52:54 +0200
commit649b3160a10f0053747383f0703b0a5a94548570 (patch)
tree2898b7213ab1349717c360c8d7561a4606f3c8c2 /src/nvim/garray.c
parent64f0fdc6822db4fc1ef5fadb892aab5bf04e75a7 (diff)
downloadrneovim-649b3160a10f0053747383f0703b0a5a94548570.tar.gz
rneovim-649b3160a10f0053747383f0703b0a5a94548570.tar.bz2
rneovim-649b3160a10f0053747383f0703b0a5a94548570.zip
refactor: reduce number of unique char casts (#15995)
Diffstat (limited to 'src/nvim/garray.c')
-rw-r--r--src/nvim/garray.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/garray.c b/src/nvim/garray.c
index bc3b7211c9..69ad17ebcb 100644
--- a/src/nvim/garray.c
+++ b/src/nvim/garray.c
@@ -192,13 +192,13 @@ char_u *ga_concat_strings(const garray_T *gap) FUNC_ATTR_NONNULL_RET
///
/// @param gap
/// @param s
-void ga_concat(garray_T *gap, const char_u *restrict s)
+void ga_concat(garray_T *gap, const char *restrict s)
{
if (s == NULL) {
return;
}
- ga_concat_len(gap, (const char *restrict)s, strlen((char *)s));
+ ga_concat_len(gap, s, strlen((char *)s));
}
/// Concatenate a string to a growarray which contains characters