summaryrefslogtreecommitdiff
path: root/src/gui_x11.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/gui_x11.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/gui_x11.c')
-rw-r--r--src/gui_x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui_x11.c b/src/gui_x11.c
index 6ff164417..01881380b 100644
--- a/src/gui_x11.c
+++ b/src/gui_x11.c
@@ -1167,7 +1167,7 @@ gui_mch_prepare(int *argc, char **argv)
* Move all the entries in argv which are relevant to X into gui_argv.
*/
gui_argc = 0;
- gui_argv = (char **)lalloc((long_u)(*argc * sizeof(char *)), FALSE);
+ gui_argv = (char **)lalloc(*argc * sizeof(char *), FALSE);
if (gui_argv == NULL)
return;
gui_argv[gui_argc++] = argv[0];