From 18a4ba29aeccb9841d5bfdd2eaaffdfae2f15ced Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 24 May 2019 19:39:03 +0200 Subject: 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). --- src/netbeans.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/netbeans.c') 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 */ { -- cgit v1.2.1