diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-08 16:19:22 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-08 16:19:22 +0000 |
commit | 04935fb17e5f0f66b82cf4546b9752d3d1fa650e (patch) | |
tree | d80c59d316f2f17a27a6541a8eb40d01cc49eca8 /src/if_py_both.h | |
parent | 143367256836b0f69881dc0c65ff165ae091dbc5 (diff) |
patch 8.2.4043: using int for second argument of ga_init2()v8.2.4043
Problem: Using int for second argument of ga_init2().
Solution: Remove unnessary type cast (int) when using sizeof().
Diffstat (limited to 'src/if_py_both.h')
-rw-r--r-- | src/if_py_both.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h index 5364f6b2f5..8e349c55f8 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 *)"<vim.Function '"); if (self->name) ga_concat(&repr_ga, self->name); |