0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.1386: unessesary type casts for lalloc()

Problem:    Unessesary type casts for lalloc().
Solution:   Remove type casts.  Change lalloc(size, TRUE) to alloc(size).
This commit is contained in:
Bram Moolenaar
2019-05-24 19:39:03 +02:00
parent 71de720c2c
commit 18a4ba29ae
41 changed files with 127 additions and 138 deletions

View File

@@ -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));
}
/*