Commit b6b11ea 1 parent cfef6fc commit b6b11ea Copy full SHA for b6b11ea
File tree 2 files changed +2
-2
lines changed
compiler/extensions/cpp/runtime
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp
55
55
cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp:389
56
56
cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp:395
57
57
cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp:577
58
- cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp:640
58
+ cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp:641
59
59
cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/JsonEncoder.cpp:89
60
60
cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/JsonEncoder.cpp:90
61
61
cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/Enums.h:93
Original file line number Diff line number Diff line change @@ -638,7 +638,7 @@ inline void BitStreamWriter::writeVarNum(
638
638
}
639
639
640
640
const size_t shiftBits = (numVarBytes - (i + 1 )) * 7 + ((hasMaxByteRange && hasNextByte) ? 1 : 0 );
641
- uint8_t add = static_cast <uint8_t >((value >> shiftBits) & bitMasks. at ( numBits - 1 ) );
641
+ uint8_t add = static_cast <uint8_t >((value >> shiftBits) & bitMasks[ numBits - 1 ] );
642
642
byte = static_cast <uint8_t >(byte | add);
643
643
writeUnsignedBits (byte, 8 );
644
644
}
You can’t perform that action at this time.
0 commit comments