]> mj.ucw.cz Git - libucw.git/commitdiff
Squash warning with 32-bit sh_off_t.
authorMartin Mares <mj@ucw.cz>
Thu, 3 Oct 2002 21:56:54 +0000 (21:56 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 3 Oct 2002 21:56:54 +0000 (21:56 +0000)
lib/fb-mmap.c

index 874778203ce513df07e0ac265a5302b7c50544dd..6e0105f22005773be8cc88ae6fbed1f77b5ea285 100644 (file)
@@ -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;