mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
ga_append_via_ptr: fix log arguments
This commit is contained in:
@@ -37,7 +37,7 @@ typedef struct growarray {
|
|||||||
static inline void *ga_append_via_ptr(garray_T *gap, size_t item_size)
|
static inline void *ga_append_via_ptr(garray_T *gap, size_t item_size)
|
||||||
{
|
{
|
||||||
if ((int)item_size != gap->ga_itemsize) {
|
if ((int)item_size != gap->ga_itemsize) {
|
||||||
WLOG("wrong item size in garray(%d), should be %d", item_size);
|
WLOG("wrong item size (%d), should be %d", item_size, gap->ga_itemsize);
|
||||||
}
|
}
|
||||||
ga_grow(gap, 1);
|
ga_grow(gap, 1);
|
||||||
return ((char *)gap->ga_data) + (item_size * (size_t)gap->ga_len++);
|
return ((char *)gap->ga_data) + (item_size * (size_t)gap->ga_len++);
|
||||||
|
Reference in New Issue
Block a user