diff --git a/client/loclass/cipherutils.c b/client/loclass/cipherutils.c index c2a802c7a..d291c4886 100644 --- a/client/loclass/cipherutils.c +++ b/client/loclass/cipherutils.c @@ -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++; }