Skip to content

Commit b6b11ea

Browse files
committed
suppression line numbers fixed
1 parent cfef6fc commit b6b11ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/extensions/cpp/runtime/ClangTidySuppressions.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp
5555
cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp:389
5656
cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp:395
5757
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
5959
cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/JsonEncoder.cpp:89
6060
cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/JsonEncoder.cpp:90
6161
cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/Enums.h:93

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.at(numBits - 1));
641+
uint8_t add = static_cast<uint8_t>((value >> shiftBits) & bitMasks[numBits - 1]);
642642
byte = static_cast<uint8_t>(byte | add);
643643
writeUnsignedBits(byte, 8);
644644
}

0 commit comments

Comments
 (0)