mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 08:18:17 +00:00
Use ARRAY_SIZE where Coccinelle wasn't able to do it
This commit is contained in:
@@ -7482,7 +7482,7 @@ int find_cmdline_var(const char_u *src, int *usedlen) FUNC_ATTR_NONNULL_ALL
|
||||
# define SPEC_AMATCH 9
|
||||
};
|
||||
|
||||
for (i = 0; i < (int)(sizeof(spec_str) / sizeof(char *)); ++i) {
|
||||
for (i = 0; i < (int)ARRAY_SIZE(spec_str); ++i) {
|
||||
len = (int)STRLEN(spec_str[i]);
|
||||
if (STRNCMP(src, spec_str[i], len) == 0) {
|
||||
*usedlen = len;
|
||||
|
Reference in New Issue
Block a user