diff options
author | VVKot <volodymyr.kot.ua@gmail.com> | 2021-11-21 07:24:07 +0000 |
---|---|---|
committer | VVKot <volodymyr.kot.ua@gmail.com> | 2021-11-21 08:20:38 +0000 |
commit | ddc401a91cc7d1dfb534172158a6b4bae4c0eb48 (patch) | |
tree | 06138e9158edd6bc318fa15958ad08b8b43f6cb1 /src/nvim/hardcopy.c | |
parent | 120a88163078e61b272e9629138642bc5df80e4a (diff) | |
download | rneovim-ddc401a91cc7d1dfb534172158a6b4bae4c0eb48.tar.gz rneovim-ddc401a91cc7d1dfb534172158a6b4bae4c0eb48.tar.bz2 rneovim-ddc401a91cc7d1dfb534172158a6b4bae4c0eb48.zip |
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)
https://github.com/vim/vim/commit/eeec2548785b2dd245a31ab25d7bde0f88ea1a6d
Diffstat (limited to 'src/nvim/hardcopy.c')
-rw-r--r-- | src/nvim/hardcopy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/hardcopy.c b/src/nvim/hardcopy.c index 32b471efb0..93fcdc55a6 100644 --- a/src/nvim/hardcopy.c +++ b/src/nvim/hardcopy.c @@ -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[] = { |