mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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;
|
p->object = new;
|
||||||
|
|
||||||
memcpy(new->data + new_size - delta, extra, delta);
|
memcpy((char*)new->data + new_size - delta, extra, delta);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user