]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fb-mem.c
I decided to turn off cf/url-equiv for indexation. however, after the indexer
[libucw.git] / lib / fb-mem.c
index 0f3158c379dbc9e7ae666c35d90e0d91c6bdfb32..2b0d7e941fa6cf1c9e0e408efe02a3a184bb67d8 100644 (file)
@@ -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);