X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Ffastbuf.h;h=f644cc8171547e4e12256de3eb92812cc776679f;hb=23552983305e667eeb772406d1745ab7b865855e;hp=1488f74045c59c0aac641f9194fb5c25c73f162f;hpb=66696bd7b7d5eb9ecb78ad3b3668b1937da896b3;p=libucw.git diff --git a/lib/fastbuf.h b/lib/fastbuf.h index 1488f740..f644cc81 100644 --- a/lib/fastbuf.h +++ b/lib/fastbuf.h @@ -11,6 +11,8 @@ #include #endif +#include + #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);