mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix void pointer arithmetic warning in pool debug code
This commit is contained in:
parent
36653e8903
commit
9afafc7a3c
@ -248,7 +248,7 @@ int dm_pool_grow_object(struct dm_pool *p, const void *extra, size_t delta)
|
||||
}
|
||||
p->object = new;
|
||||
|
||||
memcpy(new->data + new_size - delta, extra, delta);
|
||||
memcpy((char*)new->data + new_size - delta, extra, delta);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user