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 92db05f commit 747a419
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions compiler/extensions/cpp/runtime/ClangTidySuppressions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ bugprone-signed-char-misuse:src/zserio/DeltaContext.h:95
bugprone-signed-char-misuse:src/zserio/DeltaContext.h:113
bugprone-signed-char-misuse:src/zserio/DeltaContext.h:176
bugprone-signed-char-misuse:src/zserio/DeltaContext.h:212
bugprone-signed-char-misuse:src/zserio/DeltaContext.h:343
bugprone-signed-char-misuse:src/zserio/DeltaContext.h:370
bugprone-signed-char-misuse:src/zserio/DeltaContext.h:342
bugprone-signed-char-misuse:src/zserio/DeltaContext.h:369

# This is necessary for implementation of low level implementation of Span and StringView to mimic standard
# C++17 'std::span' and 'std::string_view' abstractions.
Expand Down
3 changes: 1 addition & 2 deletions compiler/extensions/cpp/runtime/src/zserio/DeltaContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,7 @@ class DeltaContext
if (isFlagSet(IS_PACKED_FLAG))
{
const size_t deltaBitSize = static_cast<size_t>(m_maxBitNumber) + (m_maxBitNumber > 0 ? 1 : 0);
const size_t packedBitSizeWithDescriptor = static_cast<size_t>(1) +
MAX_BIT_NUMBER_BITS + // descriptor
const size_t packedBitSizeWithDescriptor = 1U + MAX_BIT_NUMBER_BITS + // descriptor
m_firstElementBitSize + (m_numElements - 1) * deltaBitSize;
const size_t unpackedBitSizeWithDescriptor = 1 + m_unpackedBitSize;
if (packedBitSizeWithDescriptor >= unpackedBitSizeWithDescriptor)
Expand Down

0 comments on commit 747a419

Please sign in to comment.