mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00:00
refactor(clang-tidy): remove redundant casts
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user