aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-12-19 02:23:26 -0500
committerJustin M. Keyes <justinkz@gmail.com>2014-12-19 02:23:26 -0500
commit943b06329075865e4453a90f83afcbcfb2151965 (patch)
tree4b12072e943dcc4a5e542a7c8439cfe5f5460ba6 /src/nvim/ex_cmds.c
parent5df8bf077bc69eab4e660dc09026878adcf54bb8 (diff)
parent478c99c128df506479b37d7ffbd1adee3134607f (diff)
downloadrneovim-943b06329075865e4453a90f83afcbcfb2151965.tar.gz
rneovim-943b06329075865e4453a90f83afcbcfb2151965.tar.bz2
rneovim-943b06329075865e4453a90f83afcbcfb2151965.zip
Merge pull request #1663 from philix/array_size
Define and use the ARRAY_SIZE macro
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 049934d680..d849d87b19 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -4954,7 +4954,7 @@ int find_help_tags(char_u *arg, int *num_matches, char_u ***matches, int keep_la
* Recognize a few exceptions to the rule. Some strings that contain '*'
* with "star". Otherwise '*' is recognized as a wildcard.
*/
- for (i = (int)(sizeof(mtable) / sizeof(char *)); --i >= 0; )
+ for (i = (int)ARRAY_SIZE(mtable); --i >= 0; )
if (STRCMP(arg, mtable[i]) == 0) {
STRCPY(d, rtable[i]);
break;