vim-patch:8.1.1393: unnecessary type casts

Problem:    Unnecessary type casts.
Solution:   Remove type casts from alloc() and lalloc() calls. (Mike Williams)
51e14387f1
This commit is contained in:
VVKot
2021-11-21 06:41:57 +00:00
parent 6ff3475b42
commit ee99f34438
2 changed files with 2 additions and 2 deletions

View File

@@ -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