Merge pull request #19971 from dundargoc/refactor/remove-casts

refactor: remove redundant casts
This commit is contained in:
bfredl
2022-08-29 13:23:43 +02:00
committed by GitHub
6 changed files with 77 additions and 77 deletions

View File

@@ -3088,7 +3088,7 @@ cmdidx_T excmd_get_cmdidx(const char *cmd, size_t len)
{
cmdidx_T idx;
for (idx = (cmdidx_T)0; (int)idx < (int)CMD_SIZE; idx = (cmdidx_T)((int)idx + 1)) {
for (idx = (cmdidx_T)0; (int)idx < CMD_SIZE; idx = (cmdidx_T)((int)idx + 1)) {
if (strncmp(cmdnames[(int)idx].cmd_name, cmd, len) == 0) {
break;
}