From 04935fb17e5f0f66b82cf4546b9752d3d1fa650e Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 8 Jan 2022 16:19:22 +0000 Subject: 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(). --- src/digraph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/digraph.c') diff --git a/src/digraph.c b/src/digraph.c index 4c45e08900..f46e43f23e 100644 --- a/src/digraph.c +++ b/src/digraph.c @@ -2632,7 +2632,7 @@ ex_loadkeymap(exarg_T *eap) keymap_unload(); curbuf->b_kmap_state = 0; - ga_init2(&curbuf->b_kmap_ga, (int)sizeof(kmap_T), 20); + ga_init2(&curbuf->b_kmap_ga, sizeof(kmap_T), 20); // Set 'cpoptions' to "C" to avoid line continuation. p_cpo = (char_u *)"C"; -- cgit v1.2.3