From 18a4ba29aeccb9841d5bfdd2eaaffdfae2f15ced Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 24 May 2019 19:39:03 +0200 Subject: patch 8.1.1386: unessesary type casts for lalloc() Problem: Unessesary type casts for lalloc(). Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size). --- src/spell.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/spell.c') diff --git a/src/spell.c b/src/spell.c index fa5be8be1..1e14fabff 100644 --- a/src/spell.c +++ b/src/spell.c @@ -7820,8 +7820,7 @@ spell_edit_score( /* We use "cnt" as an array: CNT(badword_idx, goodword_idx). */ #define CNT(a, b) cnt[(a) + (b) * (badlen + 1)] - cnt = (int *)lalloc((long_u)(sizeof(int) * (badlen + 1) * (goodlen + 1)), - TRUE); + cnt = (int *)alloc(sizeof(int) * (badlen + 1) * (goodlen + 1)); if (cnt == NULL) return 0; /* out of memory */ -- cgit v1.2.1