aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorDundar Goc <gocdundar@gmail.com>2022-06-28 13:03:09 +0200
committerDundar Goc <gocdundar@gmail.com>2022-07-02 16:01:27 +0200
commit3b8804571c565a91c9ce729bb487c7ba21b659e0 (patch)
treeb8d61ff93b47fdec47982f0452d76975226322ae /src/nvim/eval.c
parented429c00d76414d07d7c7129f65ddf9be68e24f4 (diff)
downloadrneovim-3b8804571c565a91c9ce729bb487c7ba21b659e0.tar.gz
rneovim-3b8804571c565a91c9ce729bb487c7ba21b659e0.tar.bz2
rneovim-3b8804571c565a91c9ce729bb487c7ba21b659e0.zip
refactor: replace char_u
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 2ce48479b7..c7173c2078 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -986,7 +986,7 @@ void restore_vimvar(int idx, typval_T *save_tv)
vimvars[idx].vv_tv = *save_tv;
if (vimvars[idx].vv_type == VAR_UNKNOWN) {
- hi = hash_find(&vimvarht, vimvars[idx].vv_di.di_key);
+ hi = hash_find(&vimvarht, (char *)vimvars[idx].vv_di.di_key);
if (HASHITEM_EMPTY(hi)) {
internal_error("restore_vimvar()");
} else {
@@ -2822,7 +2822,7 @@ void ex_lockvar(exarg_T *eap)
if (eap->forceit) {
deep = -1;
} else if (ascii_isdigit(*arg)) {
- deep = getdigits_int((char_u **)&arg, false, -1);
+ deep = getdigits_int(&arg, false, -1);
arg = skipwhite(arg);
}
@@ -3019,7 +3019,7 @@ int do_unlet(const char *const name, const size_t name_len, const bool forceit)
}
}
- hashitem_T *hi = hash_find(ht, (const char_u *)varname);
+ hashitem_T *hi = hash_find(ht, varname);
if (HASHITEM_EMPTY(hi)) {
hi = find_hi_in_scoped_ht(name, &ht);
}
@@ -9814,7 +9814,7 @@ void func_line_start(void *cookie)
if (fp->uf_profiling && sourcing_lnum >= 1
&& sourcing_lnum <= fp->uf_lines.ga_len) {
- fp->uf_tml_idx = (int)(sourcing_lnum - 1);
+ fp->uf_tml_idx = sourcing_lnum - 1;
// Skip continuation lines.
while (fp->uf_tml_idx > 0 && FUNCLINE(fp, fp->uf_tml_idx) == NULL) {
fp->uf_tml_idx--;