commit | 04935fb17e5f0f66b82cf4546b9752d3d1fa650e | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Jan 08 16:19:22 2022 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Jan 08 16:19:22 2022 +0000 |
tree | d80c59d316f2f17a27a6541a8eb40d01cc49eca8 | |
parent | 143367256836b0f69881dc0c65ff165ae091dbc5 [diff] [blame] |
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().
diff --git a/src/dict.c b/src/dict.c index 64c9d5f..9c6b7d4 100644 --- a/src/dict.c +++ b/src/dict.c
@@ -759,7 +759,7 @@ if ((d = tv->vval.v_dict) == NULL) return NULL; - ga_init2(&ga, (int)sizeof(char), 80); + ga_init2(&ga, sizeof(char), 80); ga_append(&ga, '{'); todo = (int)d->dv_hashtab.ht_used;