summaryrefslogtreecommitdiff
path: root/src/insexpand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/insexpand.c')
-rw-r--r--src/insexpand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/insexpand.c b/src/insexpand.c
index eeff64ca2..4a807f48c 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -473,7 +473,7 @@ ins_compl_add_infercase(
? actual_len : actual_compl_length;
// Allocate wide character array for the completion and fill it.
- wca = (int *)alloc((unsigned)(actual_len * sizeof(int)));
+ wca = (int *)alloc(actual_len * sizeof(int));
if (wca != NULL)
{
p = str;
@@ -1230,7 +1230,7 @@ ins_compl_dictionaries(
if (pat_esc == NULL)
goto theend;
len = STRLEN(pat_esc) + 10;
- ptr = alloc((unsigned)len);
+ ptr = alloc(len);
if (ptr == NULL)
{
vim_free(pat_esc);