fix: cppcheck, bool vs &
This commit is contained in:
1 parent
88237e60c1
commit
a3ce88eaec
1 file changed
+1
-1
@@ -74,7 +74,7 @@ bool tailBit(BitstreamIn *stream) {
|
||||
void pushBit(BitstreamOut *stream, bool bit) {
|
||||
int bytepos = stream->position >> 3; // divide by 8
|
||||
int bitpos = stream->position & 7;
|
||||
*(stream->buffer + bytepos) |= (bit & 1) << (7 - bitpos);
|
||||
*(stream->buffer + bytepos) |= (bit) << (7 - bitpos);
|
||||
stream->position++;
|
||||
stream->numbits++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user