0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.2.4043: using int for second argument of ga_init2()

Problem:    Using int for second argument of ga_init2().
Solution:   Remove unnessary type cast (int) when using sizeof().
This commit is contained in:
Bram Moolenaar
2022-01-08 16:19:22 +00:00
parent 1433672568
commit 04935fb17e
36 changed files with 69 additions and 67 deletions

View File

@@ -6674,8 +6674,8 @@ conpty_term_and_job_init(
HANDLE i_ours = NULL;
HANDLE o_ours = NULL;
ga_init2(&ga_cmd, (int)sizeof(char*), 20);
ga_init2(&ga_env, (int)sizeof(char*), 20);
ga_init2(&ga_cmd, sizeof(char*), 20);
ga_init2(&ga_env, sizeof(char*), 20);
if (argvar->v_type == VAR_STRING)
{
@@ -7022,8 +7022,8 @@ winpty_term_and_job_init(
garray_T ga_cmd, ga_env;
char_u *cmd = NULL;
ga_init2(&ga_cmd, (int)sizeof(char*), 20);
ga_init2(&ga_env, (int)sizeof(char*), 20);
ga_init2(&ga_cmd, sizeof(char*), 20);
ga_init2(&ga_env, sizeof(char*), 20);
if (argvar->v_type == VAR_STRING)
{