mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
PVS/V1028: cast operands, not the result
This commit is contained in:
parent
969cc55993
commit
b7f518cbfa
@ -91,8 +91,8 @@ void ga_grow(garray_T *gap, int n)
|
||||
}
|
||||
int new_maxlen = gap->ga_len + n;
|
||||
|
||||
size_t new_size = (size_t)(gap->ga_itemsize * new_maxlen);
|
||||
size_t old_size = (size_t)(gap->ga_itemsize * gap->ga_maxlen);
|
||||
size_t new_size = (size_t)gap->ga_itemsize * (size_t)new_maxlen;
|
||||
size_t old_size = (size_t)gap->ga_itemsize * (size_t)gap->ga_maxlen;
|
||||
|
||||
// reallocate and clear the new memory
|
||||
char *pp = xrealloc(gap->ga_data, new_size);
|
||||
|
Loading…
Reference in New Issue
Block a user