Skip to content

Commit

Permalink
Fix some casts for some 32-bit platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Jan 28, 2025
1 parent 0f78bdc commit 9fdf662
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/makemhr/loaddef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ auto TrLoad(TokenReaderT *tr) -> int
// Load TRLoadSize (or less if at the end of the file) per read.
toLoad = TRLoadSize;

const auto in = tr->mIn&TRRingMask;
std::streamsize count{TRRingSize - in};
const auto in = tr->mIn & std::streamsize{TRRingMask};
const auto count = std::streamsize{TRRingSize} - in;
if(count < toLoad)
{
istream.read(al::to_address(tr->mRing.begin() + in), count);
Expand Down

0 comments on commit 9fdf662

Please sign in to comment.