diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-22 15:19:18 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-22 15:19:18 +0200 |
commit | 51b6eb47b3c41b01a5559b099e65354c8897093e (patch) | |
tree | cb476aa6fad106ae1b859a7b136b57506b857e4f /src/memline.c | |
parent | d70840ed68296c1144d743e6335003c81c558c24 (diff) | |
download | vim-git-51b6eb47b3c41b01a5559b099e65354c8897093e.tar.gz |
patch 8.2.1507: using malloc() directlyv8.2.1507
Problem: Using malloc() directly.
Solution: Use ALLOC_ONE(). Remove superfluous typecast. (Hussam al-Homsi,
closes #6768)
Diffstat (limited to 'src/memline.c')
-rw-r--r-- | src/memline.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/memline.c b/src/memline.c index 084a8b0fa..1c594d453 100644 --- a/src/memline.c +++ b/src/memline.c @@ -5448,8 +5448,7 @@ ml_updatechunk( chunksize_T *t_chunksize = buf->b_ml.ml_chunksize; buf->b_ml.ml_numchunks = buf->b_ml.ml_numchunks * 3 / 2; - buf->b_ml.ml_chunksize = (chunksize_T *) - vim_realloc(buf->b_ml.ml_chunksize, + buf->b_ml.ml_chunksize = vim_realloc(buf->b_ml.ml_chunksize, sizeof(chunksize_T) * buf->b_ml.ml_numchunks); if (buf->b_ml.ml_chunksize == NULL) { |