]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fastbuf.h
Added secondary sorting (i.e., breaking ties when two documents have the same Q)
[libucw.git] / lib / fastbuf.h
index 1488f74045c59c0aac641f9194fb5c25c73f162f..a796a3c749b4ced91e835907359c7c9e2b343bbd 100644 (file)
@@ -103,10 +103,10 @@ static inline void bputc(struct fastbuf *f, byte c)
     bputc_slow(f, c);
 }
 
-word bgetw_slow(struct fastbuf *f);
-static inline word bgetw(struct fastbuf *f)
+int bgetw_slow(struct fastbuf *f);
+static inline int bgetw(struct fastbuf *f)
 {
-  word w;
+  int w;
   if (f->bptr + 2 <= f->bstop)
     {
       w = GET_U16(f->bptr);