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).
diff --git a/src/eval.c b/src/eval.c
index 4796a25..1d5d0f1 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -491,7 +491,7 @@
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 @@
typval_T *
alloc_tv(void)
{
- return (typval_T *)alloc_clear((unsigned)sizeof(typval_T));
+ return (typval_T *)alloc_clear(sizeof(typval_T));
}
/*