summaryrefslogtreecommitdiff
path: root/src/netbeans.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-24 19:39:03 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-24 19:39:03 +0200
commit18a4ba29aeccb9841d5bfdd2eaaffdfae2f15ced (patch)
tree408ad339f6b34876d2fa481ac61568c7739b1160 /src/netbeans.c
parent71de720c2c117137185a6fc233b35aab37f0d4bc (diff)
downloadvim-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/netbeans.c')
-rw-r--r--src/netbeans.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/netbeans.c b/src/netbeans.c
index f1ba01a08..2d55b8006 100644
--- a/src/netbeans.c
+++ b/src/netbeans.c
@@ -863,7 +863,7 @@ nb_unquote(char_u *p, char_u **endp)
int done = 0;
/* result is never longer than input */
- result = (char *)alloc_clear((unsigned)STRLEN(p) + 1);
+ result = (char *)alloc_clear(STRLEN(p) + 1);
if (result == NULL)
return NULL;
@@ -3210,7 +3210,8 @@ addsigntype(
if (globalsignmaplen == 0) /* first allocation */
{
globalsignmaplen = 20;
- globalsignmap = (char **)alloc_clear(globalsignmaplen*sizeof(char *));
+ globalsignmap = (char **)alloc_clear(
+ globalsignmaplen * sizeof(char *));
}
else /* grow it */
{