Mercurial > vim
comparison src/gui_w32.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 | ce04ebdf26b8 |
comparison
equal
deleted
inserted
replaced
16767:3959544fc067 | 16768:695d9ef00b03 |
---|---|
6801 } | 6801 } |
6802 if (dfltbutton >= numButtons) | 6802 if (dfltbutton >= numButtons) |
6803 dfltbutton = -1; | 6803 dfltbutton = -1; |
6804 | 6804 |
6805 /* Allocate array to hold the width of each button */ | 6805 /* Allocate array to hold the width of each button */ |
6806 buttonWidths = (int *)lalloc(numButtons * sizeof(int), TRUE); | 6806 buttonWidths = (int *)alloc(numButtons * sizeof(int)); |
6807 if (buttonWidths == NULL) | 6807 if (buttonWidths == NULL) |
6808 return -1; | 6808 return -1; |
6809 | 6809 |
6810 /* Allocate array to hold the X position of each button */ | 6810 /* Allocate array to hold the X position of each button */ |
6811 buttonPositions = (int *)lalloc(numButtons * sizeof(int), TRUE); | 6811 buttonPositions = (int *)alloc(numButtons * sizeof(int)); |
6812 if (buttonPositions == NULL) | 6812 if (buttonPositions == NULL) |
6813 return -1; | 6813 return -1; |
6814 | 6814 |
6815 /* | 6815 /* |
6816 * Calculate how big the dialog must be. | 6816 * Calculate how big the dialog must be. |