mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58:35 +00:00
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:
@@ -80,7 +80,7 @@ static signgroup_T *sign_group_ref(const char_u *groupname)
|
||||
hi = hash_lookup(&sg_table, (char *)groupname, STRLEN(groupname), hash);
|
||||
if (HASHITEM_EMPTY(hi)) {
|
||||
// new group
|
||||
group = xmalloc((unsigned)(sizeof(signgroup_T) + STRLEN(groupname)));
|
||||
group = xmalloc(sizeof(signgroup_T) + STRLEN(groupname));
|
||||
|
||||
STRCPY(group->sg_name, groupname);
|
||||
group->sg_refcount = 1;
|
||||
|
Reference in New Issue
Block a user