Make the compiler happy (and count == 0 an error).

This commit is contained in:
Moritz Bunkus 2005-09-06 16:30:41 +00:00
parent e14bcb1b24
commit 10557b0205

View File

@ -342,7 +342,7 @@ static int
bitcopy(bit_reader_t &r, bitcopy(bit_reader_t &r,
bit_writer_t &w, bit_writer_t &w,
int count) { int count) {
int bit, v = 0; int bit = -1, v = 0;
while (count-- && (bit = r.bit()) >= 0) while (count-- && (bit = r.bit()) >= 0)
w.bit(bit), v = (v << 1) | bit; w.bit(bit), v = (v << 1) | bit;