refactor(clang-tidy): remove redundant casts

This commit is contained in:
dundargoc
2023-04-26 18:28:49 +02:00
committed by GitHub
parent 6674d706d9
commit a1b045f60a
5 changed files with 47 additions and 48 deletions

View File

@@ -711,8 +711,7 @@ void ins_char_bytes(char *buf, size_t charlen)
// Copy bytes after the changed character(s).
char *p = newp + col;
if (linelen > col + oldlen) {
memmove(p + newlen, oldp + col + oldlen,
(size_t)(linelen - col - oldlen));
memmove(p + newlen, oldp + col + oldlen, linelen - col - oldlen);
}
// Insert or overwrite the new character.