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/insexpand.c b/src/insexpand.c
index 4a807f4..387f066 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -611,7 +611,7 @@
// Allocate a new match structure.
// Copy the values to the new match structure.
- match = (compl_T *)alloc_clear((unsigned)sizeof(compl_T));
+ match = (compl_T *)alloc_clear(sizeof(compl_T));
if (match == NULL)
return FAIL;
match->cp_number = -1;
@@ -1071,8 +1071,7 @@
if (compl_match_arraysize == 0)
return;
compl_match_array = (pumitem_T *)alloc_clear(
- (unsigned)(sizeof(pumitem_T)
- * compl_match_arraysize));
+ sizeof(pumitem_T) * compl_match_arraysize);
if (compl_match_array != NULL)
{
// If the current match is the original text don't find the first