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/if_py_both.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/if_py_both.h') diff --git a/src/if_py_both.h b/src/if_py_both.h index 5364f6b2f..8e349c55f 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -3264,7 +3264,7 @@ FunctionRepr(FunctionObject *self) typval_T tv; char_u numbuf[NUMBUFLEN]; - ga_init2(&repr_ga, (int)sizeof(char), 70); + ga_init2(&repr_ga, sizeof(char), 70); ga_concat(&repr_ga, (char_u *)"name) ga_concat(&repr_ga, self->name); -- cgit v1.2.1