comparison src/menu.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 041156ce1d22
comparison
equal deleted inserted replaced
16767:3959544fc067 16768:695d9ef00b03
581 emsg(_("E332: Separator cannot be part of a menu path")); 581 emsg(_("E332: Separator cannot be part of a menu path"));
582 goto erret; 582 goto erret;
583 } 583 }
584 584
585 /* Not already there, so lets add it */ 585 /* Not already there, so lets add it */
586 menu = (vimmenu_T *)alloc_clear((unsigned)sizeof(vimmenu_T)); 586 menu = (vimmenu_T *)alloc_clear(sizeof(vimmenu_T));
587 if (menu == NULL) 587 if (menu == NULL)
588 goto erret; 588 goto erret;
589 589
590 menu->modes = modes; 590 menu->modes = modes;
591 menu->enabled = MENU_ALL_MODES; 591 menu->enabled = MENU_ALL_MODES;