Skip to content

Commit

Permalink
Sign conversion warnings fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mikir committed Jun 14, 2024
1 parent 0d70cbe commit 9b3e473
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ int64_t BitStreamReader::readSignedBits64(uint8_t numBits)
numBits < 64 && (static_cast<uint64_t>(value) >= (UINT64_C(1) << (numBits - 1)));
if (needsSignExtension)
{
value -= UINT64_C(1) << numBits;
value = static_cast<int64_t>(static_cast<uint64_t>(value) - (UINT64_C(1) << numBits));
}

return value;
Expand Down

0 comments on commit 9b3e473

Please sign in to comment.