aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testing.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-08-25 22:35:20 +0200
committerGitHub <noreply@github.com>2022-08-25 22:35:20 +0200
commit6e9980fc3b6f8e246632aef0f4b8c0edf30e24f0 (patch)
tree163d6c0553e6c9f7a91d7d0d97e369722dca75be /src/nvim/testing.c
parentbfd1adc62c615e7b65bdfe6d3c21158708eb4314 (diff)
parent40855b0143a864739a6037921e15699445dcf8a7 (diff)
downloadrneovim-6e9980fc3b6f8e246632aef0f4b8c0edf30e24f0.tar.gz
rneovim-6e9980fc3b6f8e246632aef0f4b8c0edf30e24f0.tar.bz2
rneovim-6e9980fc3b6f8e246632aef0f4b8c0edf30e24f0.zip
Merge pull request #19628 from dundargoc/refactor/char_u/2
refactor: replace char_u with char
Diffstat (limited to 'src/nvim/testing.c')
-rw-r--r--src/nvim/testing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/testing.c b/src/nvim/testing.c
index e3ffe1c7d1..4a252dca3e 100644
--- a/src/nvim/testing.c
+++ b/src/nvim/testing.c
@@ -457,7 +457,7 @@ void f_assert_exception(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
ga_clear(&ga);
rettv->vval.v_number = 1;
} else if (error != NULL
- && strstr((char *)get_vim_var_str(VV_EXCEPTION), error) == NULL) {
+ && strstr(get_vim_var_str(VV_EXCEPTION), error) == NULL) {
prepare_assert_error(&ga);
fill_assert_error(&ga, &argvars[1], NULL, &argvars[0],
get_vim_var_tv(VV_EXCEPTION), ASSERT_OTHER);
@@ -493,7 +493,7 @@ void f_assert_fails(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
const char *const error = tv_get_string_buf_chk(&argvars[1], buf);
if (error == NULL
- || strstr((char *)get_vim_var_str(VV_ERRMSG), error) == NULL) {
+ || strstr(get_vim_var_str(VV_ERRMSG), error) == NULL) {
prepare_assert_error(&ga);
fill_assert_error(&ga, &argvars[2], NULL, &argvars[1],
get_vim_var_tv(VV_ERRMSG), ASSERT_OTHER);