mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 23:31:51 +00:00
vim-patch:8.2.2922: computing array length is done in various ways
Problem: Computing array length is done in various ways.
Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes vim/vim#8305)
eeec254878
This commit is contained in:
@@ -986,8 +986,7 @@ static colnr_T hardcopy_line(prt_settings_T *psettings, int page_line, prt_pos_T
|
||||
#define PRT_PS_DEFAULT_DPI (72) // Default user space resolution
|
||||
#define PRT_PS_DEFAULT_FONTSIZE (10)
|
||||
|
||||
#define PRT_MEDIASIZE_LEN (sizeof(prt_mediasize) / \
|
||||
sizeof(struct prt_mediasize_S))
|
||||
#define PRT_MEDIASIZE_LEN ARRAY_SIZE(prt_mediasize)
|
||||
|
||||
static struct prt_mediasize_S prt_mediasize[] =
|
||||
{
|
||||
|
Reference in New Issue
Block a user