comparison src/os_qnx.c @ 16768:695d9ef00b03 v8.1.1386

patch 8.1.1386: unessesary type casts for lalloc() commit https://github.com/vim/vim/commit/18a4ba29aeccb9841d5bfdd2eaaffdfae2f15ced Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 24 19:39:03 2019 +0200 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).
author Bram Moolenaar <Bram@vim.org>
date Fri, 24 May 2019 19:45:05 +0200
parents cd5c83115ec6
children 3147c7c2e86b
comparison
equal deleted inserted replaced
16767:3959544fc067 16768:695d9ef00b03
118 cbd->owned = FALSE; 118 cbd->owned = FALSE;
119 119
120 type = clip_convert_selection(&str, &len, cbd); 120 type = clip_convert_selection(&str, &len, cbd);
121 if (type >= 0) 121 if (type >= 0)
122 { 122 {
123 text_clip = lalloc(len + 1, TRUE); /* Normal text */ 123 text_clip = alloc(len + 1); // Normal text
124 124
125 if (text_clip && vim_clip) 125 if (text_clip && vim_clip)
126 { 126 {
127 memset(clip_header, 0, sizeof(clip_header)); 127 memset(clip_header, 0, sizeof(clip_header));
128 128