Skip to content

Commit e2e0fd2

Browse files
committed
github
1 parent 359e8df commit e2e0fd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/extensions/cpp/runtime/src/zserio/BitStreamWriter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ inline void BitStreamWriter::writeVarNum(
638638
}
639639

640640
const size_t shiftBits = (numVarBytes - (i + 1)) * 7 + ((hasMaxByteRange && hasNextByte) ? 1 : 0);
641-
uint8_t add = static_cast<uint8_t>((value >> shiftBits) & bitMasks[numBits - 1]);
641+
uint8_t add = static_cast<uint8_t>((value >> shiftBits) & bitMasks.at(numBits - 1));
642642
byte = static_cast<uint8_t>(byte | add);
643643
writeUnsignedBits(byte, 8);
644644
}

0 commit comments

Comments
 (0)