Skip to content

Commit

Permalink
Remove a couple unnecessary casts
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Nov 3, 2024
1 parent f8725ec commit 492dab4
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 @@ -202,7 +202,7 @@ auto TrLoad(TokenReaderT *tr) -> int
{
std::istream &istream = tr->mIStream;

auto toLoad = std::streamsize{std::streamsize{TRRingSize} - (tr->mIn - tr->mOut)};
auto toLoad = std::streamsize{TRRingSize} - (tr->mIn - tr->mOut);
if(toLoad >= TRLoadSize && istream.good())
{
// Load TRLoadSize (or less if at the end of the file) per read.
Expand Down Expand Up @@ -850,7 +850,7 @@ auto ReadWaveData(std::istream &istream, const SourceRefT *src, const ByteOrderT
{
auto pre = static_cast<int>(src->mSize * src->mChannel);
auto post = static_cast<int>(src->mSize * (src->mSkip - src->mChannel - 1));
auto skip = int{0};
auto skip = 0;
for(size_t i{0};i < hrir.size();++i)
{
skip += pre;
Expand Down

0 comments on commit 492dab4

Please sign in to comment.