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 1e93202 commit 92db05f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler/extensions/cpp/runtime/ClangTidySuppressions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp
cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp:389
cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp:395
cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp:591
cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp:660
cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/BitStreamWriter.cpp:659
cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/JsonEncoder.cpp:91
cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/JsonEncoder.cpp:92
cppcoreguidelines-pro-bounds-constant-array-index:src/zserio/Enums.h:93
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,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[numBits - 1U]);
const uint8_t add = 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 92db05f

Please sign in to comment.