From 05a2d7bcfda1c250952a86a237609628e783591a Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 1 Mar 2012 10:31:35 +0000 Subject: [PATCH] Add cast for ptrdiff_t - cleanup gcc warning --- libdm/mm/pool-fast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;