aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax.c
diff options
context:
space:
mode:
authorVVKot <volodymyr.kot.ua@gmail.com>2021-11-21 06:41:57 +0000
committerVVKot <volodymyr.kot.ua@gmail.com>2021-11-22 05:44:40 +0000
commitee99f34438ad9a1df62b179d7e3d9ad1439b510d (patch)
tree5566aeef3f3b899ebf99bbddfc11d360f51dab60 /src/nvim/syntax.c
parent6ff3475b42870e8f26ec78a71e79aad70c63d05e (diff)
downloadrneovim-ee99f34438ad9a1df62b179d7e3d9ad1439b510d.tar.gz
rneovim-ee99f34438ad9a1df62b179d7e3d9ad1439b510d.tar.bz2
rneovim-ee99f34438ad9a1df62b179d7e3d9ad1439b510d.zip
vim-patch:8.1.1393: unnecessary type casts
Problem: Unnecessary type casts. Solution: Remove type casts from alloc() and lalloc() calls. (Mike Williams) https://github.com/vim/vim/commit/51e14387f120392b74b84408cafec33942337a05
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r--src/nvim/syntax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c
index 13833c256e..1f0ebcd963 100644
--- a/src/nvim/syntax.c
+++ b/src/nvim/syntax.c
@@ -5401,7 +5401,7 @@ static int get_id_list(char_u **const arg, const int keylen, int16_t **const lis
do {
for (end = p; *end && !ascii_iswhite(*end) && *end != ','; end++) {
}
- char_u *const name = xmalloc((int)(end - p + 3)); // leave room for "^$"
+ char_u *const name = xmalloc(end - p + 3); // leave room for "^$"
STRLCPY(name + 1, p, end - p + 1);
if (STRCMP(name + 1, "ALLBUT") == 0
|| STRCMP(name + 1, "ALL") == 0