Mercurial > vim
comparison src/gui_x11.c @ 16768:695d9ef00b03 v8.1.1386
patch 8.1.1386: unessesary type casts for lalloc()
commit https://github.com/vim/vim/commit/18a4ba29aeccb9841d5bfdd2eaaffdfae2f15ced
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 24 19:39:03 2019 +0200
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).
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 24 May 2019 19:45:05 +0200 |
parents | cd5c83115ec6 |
children | ce04ebdf26b8 |
comparison
equal
deleted
inserted
replaced
16767:3959544fc067 | 16768:695d9ef00b03 |
---|---|
1165 | 1165 |
1166 /* | 1166 /* |
1167 * Move all the entries in argv which are relevant to X into gui_argv. | 1167 * Move all the entries in argv which are relevant to X into gui_argv. |
1168 */ | 1168 */ |
1169 gui_argc = 0; | 1169 gui_argc = 0; |
1170 gui_argv = (char **)lalloc((long_u)(*argc * sizeof(char *)), FALSE); | 1170 gui_argv = (char **)lalloc(*argc * sizeof(char *), FALSE); |
1171 if (gui_argv == NULL) | 1171 if (gui_argv == NULL) |
1172 return; | 1172 return; |
1173 gui_argv[gui_argc++] = argv[0]; | 1173 gui_argv[gui_argc++] = argv[0]; |
1174 arg = 1; | 1174 arg = 1; |
1175 while (arg < *argc) | 1175 while (arg < *argc) |