mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 14:26:07 +00:00
Remove lalloc_clear
Use `xcalloc` instead. Change some local variables to avoid casting.
This commit is contained in:

committed by
Thiago de Arruda

parent
204d3dfafc
commit
63cc8b6934
@@ -3657,7 +3657,7 @@ spell_read_tree (
|
||||
*bytsp = bp;
|
||||
|
||||
/* Allocate the index array. */
|
||||
ip = (idx_T *)lalloc_clear((long_u)(len * sizeof(int)), TRUE);
|
||||
ip = xcalloc(len, sizeof(*ip));
|
||||
*idxsp = ip;
|
||||
|
||||
/* Recursively read the tree and store it in the array. */
|
||||
|
Reference in New Issue
Block a user