From: Martin Mares Date: Thu, 3 Oct 2002 21:56:54 +0000 (+0000) Subject: Squash warning with 32-bit sh_off_t. X-Git-Tag: holmes-import~1330 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=d6f595c7657d4ba83cc3cf6d72e4145f5e9d07ce;p=libucw.git Squash warning with 32-bit sh_off_t. --- diff --git a/lib/fb-mmap.c b/lib/fb-mmap.c index 87477820..6e0105f2 100644 --- a/lib/fb-mmap.c +++ b/lib/fb-mmap.c @@ -47,7 +47,7 @@ bfmm_map_window(struct fastbuf *f) { struct fb_mmap *F = FB_MMAP(f); sh_off_t pos0 = f->pos & ~(sh_off_t)(PAGE_SIZE-1); - int l = MIN(MMAP_WINDOW_SIZE, F->file_extend - pos0); + int l = MIN((sh_off_t)MMAP_WINDOW_SIZE, F->file_extend - pos0); uns ll = ALIGN(l, PAGE_SIZE); uns oll = ALIGN(f->bufend - f->buffer, PAGE_SIZE); int prot = F->is_writeable ? (PROT_READ | PROT_WRITE) : PROT_READ;