comparison src/edit.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 ef00b6bc186b
children 9138e2c60bf1
comparison
equal deleted inserted replaced
16767:3959544fc067 16768:695d9ef00b03
3857 if (replace_stack_nr < replace_offset) /* nothing to do */ 3857 if (replace_stack_nr < replace_offset) /* nothing to do */
3858 return; 3858 return;
3859 if (replace_stack_len <= replace_stack_nr) 3859 if (replace_stack_len <= replace_stack_nr)
3860 { 3860 {
3861 replace_stack_len += 50; 3861 replace_stack_len += 50;
3862 p = lalloc(sizeof(char_u) * replace_stack_len, TRUE); 3862 p = alloc(sizeof(char_u) * replace_stack_len);
3863 if (p == NULL) /* out of memory */ 3863 if (p == NULL) /* out of memory */
3864 { 3864 {
3865 replace_stack_len -= 50; 3865 replace_stack_len -= 50;
3866 return; 3866 return;
3867 } 3867 }