diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-24 19:39:03 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-24 19:39:03 +0200 |
commit | 18a4ba29aeccb9841d5bfdd2eaaffdfae2f15ced (patch) | |
tree | 408ad339f6b34876d2fa481ac61568c7739b1160 /src/eval.c | |
parent | 71de720c2c117137185a6fc233b35aab37f0d4bc (diff) | |
download | vim-git-18a4ba29aeccb9841d5bfdd2eaaffdfae2f15ced.tar.gz |
patch 8.1.1386: unessesary type casts for lalloc()v8.1.1386
Problem: Unessesary type casts for lalloc().
Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c index 4796a25bb..1d5d0f11a 100644 --- a/src/eval.c +++ b/src/eval.c @@ -491,7 +491,7 @@ var_redir_start(char_u *name, int append) if (redir_varname == NULL) return FAIL; - redir_lval = (lval_T *)alloc_clear((unsigned)sizeof(lval_T)); + redir_lval = (lval_T *)alloc_clear(sizeof(lval_T)); if (redir_lval == NULL) { var_redir_stop(); @@ -7288,7 +7288,7 @@ handle_subscript( typval_T * alloc_tv(void) { - return (typval_T *)alloc_clear((unsigned)sizeof(typval_T)); + return (typval_T *)alloc_clear(sizeof(typval_T)); } /* |