]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fastbuf.h
sign mismatch fixed
[libucw.git] / lib / fastbuf.h
index 1488f74045c59c0aac641f9194fb5c25c73f162f..f644cc8171547e4e12256de3eb92812cc776679f 100644 (file)
@@ -11,6 +11,8 @@
 #include <stdio.h>
 #endif
 
+#include <string.h>
+
 #include "lib/unaligned.h"
 
 /*
@@ -103,10 +105,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);