mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44: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:
@@ -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";
|
||||
|
Reference in New Issue
Block a user