mirror of
https://github.com/neovim/neovim.git
synced 2026-02-20 09:19:43 +10:00
ops: use ARRAY_SIZE macro for opchars array length
This commit is contained in:
@@ -153,7 +153,7 @@ int get_op_type(int char1, int char2)
|
||||
if (opchars[i][0] == char1 && opchars[i][1] == char2) {
|
||||
break;
|
||||
}
|
||||
if (i == (int)(sizeof(opchars) / sizeof(char [3]) - 1)) {
|
||||
if (i == (int)(ARRAY_SIZE(opchars) - 1)) {
|
||||
internal_error("get_op_type()");
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user