Commit b1c0e6d 1 parent e624363 commit b1c0e6d Copy full SHA for b1c0e6d
File tree 1 file changed +2
-2
lines changed
compiler/extensions/cpp/runtime/src/zserio
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -507,7 +507,7 @@ int16_t BitStreamReader::readVarInt16()
507
507
if ((byte & VARINT_HAS_NEXT_1) == 0 )
508
508
return sign ? static_cast <int16_t >(-result) : static_cast <int16_t >(result);
509
509
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
511
511
return sign ? static_cast <int16_t >(-result) : static_cast <int16_t >(result);
512
512
}
513
513
@@ -580,7 +580,7 @@ uint16_t BitStreamReader::readVarUInt16()
580
580
if ((byte & VARUINT_HAS_NEXT) == 0 )
581
581
return result;
582
582
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
584
584
return result;
585
585
}
586
586
You can’t perform that action at this time.
0 commit comments