From a3ce88eaecef36bb1cfd961c1e35fa143a12082f Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 30 Dec 2019 16:46:13 +0100 Subject: [PATCH] fix: cppcheck, bool vs & --- client/loclass/cipherutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; }