Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikir committed Jun 19, 2024
1 parent 61c6d4b commit 1e93202
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ inline void BitStreamWriter::writeVarNum(

const size_t shiftBits = (numVarBytes - (i + 1)) * 7 + ((hasMaxByteRange && hasNextByte) ? 1 : 0);
const uint8_t add =
static_cast<uint8_t>((value >> shiftBits) & bitMasks[static_cast<size_t>(numBits - 1)]);
static_cast<uint8_t>((value >> shiftBits) & bitMasks[numBits - 1U]);
byte = static_cast<uint8_t>(byte | add);
writeUnsignedBits(byte, 8);
}
Expand Down

0 comments on commit 1e93202

Please sign in to comment.