From c6c1f58b87e8245b26ff858493b77389d358c9db Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E3=82=88=E3=82=84?= Date: Mon, 15 Aug 2011 19:05:26 +0900 Subject: [PATCH] replace type of 'byte' from unsigned to signed. --- src/bitstream.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bitstream.c b/src/bitstream.c index 402dfda..fee0904 100644 --- a/src/bitstream.c +++ b/src/bitstream.c @@ -224,7 +224,8 @@ bitstream_putbytesBE(bitstream_t *bs, unsigned long bytes, int byte_width) { unsigned long bitstream_getbytesLE(bitstream_t *bs, int byte_width) { register int i; - register unsigned long byte, bytes = 0; + register int byte; + register unsigned long bytes = 0; for (i=0 ; i < byte_width ; i++) { byte = bitstream_getbyte(bs); if (byte == -1) { @@ -239,7 +240,8 @@ bitstream_getbytesLE(bitstream_t *bs, int byte_width) { unsigned long bitstream_getbytesBE(bitstream_t *bs, int byte_width) { register int i; - register unsigned long byte, bytes = 0; + register int byte; + register unsigned long bytes = 0; for (i=0 ; i < byte_width ; i++) { bytes <<= 8; byte = bitstream_getbyte(bs); -- 2.11.0