mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-31 05:47:43 +03:00
Add cast for ptrdiff_t - cleanup gcc warning
This commit is contained in:
parent
6732bedecb
commit
05a2d7bcfd
@ -258,7 +258,7 @@ static struct chunk *_new_chunk(struct dm_pool *p, size_t s)
|
||||
struct chunk *c;
|
||||
|
||||
if (p->spare_chunk &&
|
||||
((p->spare_chunk->end - p->spare_chunk->begin) >= s)) {
|
||||
((p->spare_chunk->end - p->spare_chunk->begin) >= (ptrdiff_t)s)) {
|
||||
/* reuse old chunk */
|
||||
c = p->spare_chunk;
|
||||
p->spare_chunk = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user