mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Add cast for ptrdiff_t - cleanup gcc warning
This commit is contained in:
parent
3bd9048854
commit
84e16ecdb5
@ -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…
Reference in New Issue
Block a user