aboutsummaryrefslogtreecommitdiff
path: root/src/spell.c
diff options
context:
space:
mode:
authorJohn Schmidt <john.schmidt.h@gmail.com>2014-04-18 01:52:48 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-19 09:36:17 -0300
commit63cc8b6934e74da2fd13aa5d9f2254c257a45b1c (patch)
tree0af45b07e1d92d19529b69172431606def237102 /src/spell.c
parent204d3dfafcc5b285d112e023dd5e5b6f1e861146 (diff)
downloadrneovim-63cc8b6934e74da2fd13aa5d9f2254c257a45b1c.tar.gz
rneovim-63cc8b6934e74da2fd13aa5d9f2254c257a45b1c.tar.bz2
rneovim-63cc8b6934e74da2fd13aa5d9f2254c257a45b1c.zip
Remove `lalloc_clear`
Use `xcalloc` instead. Change some local variables to avoid casting.
Diffstat (limited to 'src/spell.c')
-rw-r--r--src/spell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spell.c b/src/spell.c
index 7e43596a95..ec8d3db296 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -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. */