Skip to content

Commit a7279de

Browse files
committed
github
1 parent 6975f95 commit a7279de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ inline BaseSignedType readSignedBitsImpl(ReaderContext& ctx, uint8_t numBits)
334334
inline uint64_t readBits64Impl(ReaderContext& ctx, uint8_t numBits)
335335
{
336336
// read the first 32 bits
337-
numBits -= 32;
337+
numBits = static_cast<uint8_t>(numBits - 32);
338338
uint64_t value = readBitsImpl(ctx, 32);
339339

340340
// add the remaining bits

0 commit comments

Comments
 (0)