diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-24 19:39:03 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-24 19:39:03 +0200 |
commit | 18a4ba29aeccb9841d5bfdd2eaaffdfae2f15ced (patch) | |
tree | 408ad339f6b34876d2fa481ac61568c7739b1160 /src/popupmnu.c | |
parent | 71de720c2c117137185a6fc233b35aab37f0d4bc (diff) | |
download | vim-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/popupmnu.c')
-rw-r--r-- | src/popupmnu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/popupmnu.c b/src/popupmnu.c index 0b002f53e..e5811d31b 100644 --- a/src/popupmnu.c +++ b/src/popupmnu.c @@ -1071,7 +1071,7 @@ split_message(char_u *mesg, pumitem_T **array) * position. */ if (height > max_height) height = max_height; - *array = (pumitem_T *)alloc_clear((unsigned)sizeof(pumitem_T) * height); + *array = (pumitem_T *)alloc_clear(sizeof(pumitem_T) * height); if (*array == NULL) goto failed; @@ -1165,7 +1165,7 @@ ui_post_balloon(char_u *mesg, list_T *list) balloon_arraysize = list->lv_len; balloon_array = (pumitem_T *)alloc_clear( - (unsigned)sizeof(pumitem_T) * list->lv_len); + sizeof(pumitem_T) * list->lv_len); if (balloon_array == NULL) return; for (idx = 0, li = list->lv_first; li != NULL; li = li->li_next, ++idx) @@ -1271,7 +1271,7 @@ pum_show_popupmenu(vimmenu_T *menu) return; } - array = (pumitem_T *)alloc_clear((unsigned)sizeof(pumitem_T) * pum_size); + array = (pumitem_T *)alloc_clear(sizeof(pumitem_T) * pum_size); if (array == NULL) return; |