diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-03-01 10:31:35 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-03-01 10:31:35 +0000 |
commit | 84e16ecdb56839890f673a636c25dd9323c0f46a (patch) | |
tree | fdd95d0f409d85bd917a26c25a19c151d5df2c3c | |
parent | 3bd90488545a4ad5374b4e0f1daba6cf16ae6ae8 (diff) | |
download | lvm2-84e16ecdb56839890f673a636c25dd9323c0f46a.tar.gz |
Add cast for ptrdiff_t - cleanup gcc warning
-rw-r--r-- | libdm/mm/pool-fast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdm/mm/pool-fast.c b/libdm/mm/pool-fast.c index dd41b6ece..d54527ac5 100644 --- a/libdm/mm/pool-fast.c +++ b/libdm/mm/pool-fast.c @@ -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; |