mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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;
|
struct chunk *c;
|
||||||
|
|
||||||
if (p->spare_chunk &&
|
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 */
|
/* reuse old chunk */
|
||||||
c = p->spare_chunk;
|
c = p->spare_chunk;
|
||||||
p->spare_chunk = 0;
|
p->spare_chunk = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user