From: Martin Mares Date: Mon, 23 Sep 2002 18:03:42 +0000 (+0000) Subject: Damned automatic typecasts! X-Git-Tag: holmes-import~1340 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=43ad0ca991bb413356651deac398aea6a92eb52d;p=libucw.git Damned automatic typecasts! --- diff --git a/lib/fb-mem.c b/lib/fb-mem.c index 0f3158c3..2b0d7e94 100644 --- a/lib/fb-mem.c +++ b/lib/fb-mem.c @@ -110,7 +110,7 @@ fbmem_seek(struct fastbuf *f, sh_off_t pos, int whence) /* Yes, this is linear. But considering the average number of buckets, it doesn't matter. */ for (b=m->first; b; b=b->next) { - if (pos <= b->pos + b->size) /* <=, because we need to be able to seek just after file end */ + if (pos <= b->pos + (sh_off_t)b->size) /* <=, because we need to be able to seek just after file end */ { f->buffer = b->data; f->bptr = b->data + (pos - b->pos);