1
0
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:
Zdenek Kabelac 2012-03-01 10:31:35 +00:00
parent 3bd9048854
commit 84e16ecdb5

View File

@ -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;