Skip to content

Commit b1c0e6d

Browse files
committed
github
1 parent e624363 commit b1c0e6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ int16_t BitStreamReader::readVarInt16()
507507
if ((byte & VARINT_HAS_NEXT_1) == 0)
508508
return sign ? static_cast<int16_t>(-result) : static_cast<int16_t>(result);
509509

510-
result = static_cast<uint16_t>(result << 8U) | static_cast<uint8_t>(readBitsImpl(m_context, 8)); // byte 2
510+
result = static_cast<uint16_t>((result << 8U) | readBitsImpl(m_context, 8)); // byte 2
511511
return sign ? static_cast<int16_t>(-result) : static_cast<int16_t>(result);
512512
}
513513

@@ -580,7 +580,7 @@ uint16_t BitStreamReader::readVarUInt16()
580580
if ((byte & VARUINT_HAS_NEXT) == 0)
581581
return result;
582582

583-
result = static_cast<uint16_t>(result << 8U) | static_cast<uint8_t>(readBitsImpl(m_context, 8)); // byte 2
583+
result = static_cast<uint16_t>((result << 8U) | readBitsImpl(m_context, 8)); // byte 2
584584
return result;
585585
}
586586

0 commit comments

Comments
 (0)