diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-24 19:39:03 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-24 19:39:03 +0200 |
commit | 18a4ba29aeccb9841d5bfdd2eaaffdfae2f15ced (patch) | |
tree | 408ad339f6b34876d2fa481ac61568c7739b1160 /src/winclip.c | |
parent | 71de720c2c117137185a6fc233b35aab37f0d4bc (diff) | |
download | vim-git-18a4ba29aeccb9841d5bfdd2eaaffdfae2f15ced.tar.gz |
patch 8.1.1386: unessesary type casts for lalloc()v8.1.1386
Problem: Unessesary type casts for lalloc().
Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
Diffstat (limited to 'src/winclip.c')
-rw-r--r-- | src/winclip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/winclip.c b/src/winclip.c index feef18d3c..f6f24d103 100644 --- a/src/winclip.c +++ b/src/winclip.c @@ -244,7 +244,7 @@ crnl_to_nl(const char_u *str, int *size) char_u *retp; /* Avoid allocating zero bytes, it generates an error message. */ - ret = lalloc((long_u)(str_len == 0 ? 1 : str_len), TRUE); + ret = alloc(str_len == 0 ? 1 : str_len); if (ret != NULL) { retp = ret; |