mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
fix: cppcheck, bool vs &
This commit is contained in:
parent
88237e60c1
commit
a3ce88eaec
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ bool tailBit(BitstreamIn *stream) {
|
||||||
void pushBit(BitstreamOut *stream, bool bit) {
|
void pushBit(BitstreamOut *stream, bool bit) {
|
||||||
int bytepos = stream->position >> 3; // divide by 8
|
int bytepos = stream->position >> 3; // divide by 8
|
||||||
int bitpos = stream->position & 7;
|
int bitpos = stream->position & 7;
|
||||||
*(stream->buffer + bytepos) |= (bit & 1) << (7 - bitpos);
|
*(stream->buffer + bytepos) |= (bit) << (7 - bitpos);
|
||||||
stream->position++;
|
stream->position++;
|
||||||
stream->numbits++;
|
stream->numbits++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue