aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/change.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-04-26 18:28:49 +0200
committerGitHub <noreply@github.com>2023-04-26 18:28:49 +0200
commita1b045f60a22d366e255dfff1c54ed42ebe49284 (patch)
tree89965d1e8574a751b3c08c707a5ceece857b8521 /src/nvim/change.c
parent6674d706d97d7e681a5404f79a1c5bba3af80bae (diff)
downloadrneovim-a1b045f60a22d366e255dfff1c54ed42ebe49284.tar.gz
rneovim-a1b045f60a22d366e255dfff1c54ed42ebe49284.tar.bz2
rneovim-a1b045f60a22d366e255dfff1c54ed42ebe49284.zip
refactor(clang-tidy): remove redundant casts
Diffstat (limited to 'src/nvim/change.c')
-rw-r--r--src/nvim/change.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/change.c b/src/nvim/change.c
index 493207d9d5..6fd32d9113 100644
--- a/src/nvim/change.c
+++ b/src/nvim/change.c
@@ -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.