We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6fd3c4 commit fe350d9Copy full SHA for fe350d9
AudioFile.h
@@ -1374,7 +1374,7 @@ T AudioSampleConverter<T>::thirtyTwoBitIntToSample (int32_t sample)
1374
if constexpr (std::is_signed_v<T>)
1375
return static_cast<T> (clamp (sample, SampleLimit::SignedInt32_Min, SampleLimit::SignedInt32_Max));
1376
else
1377
- return static_cast<T> (clamp (sample + SignedInt32_Max + 1, SampleLimit::UnsignedInt32_Min, SampleLimit::UnsignedInt32_Max));
+ return static_cast<T> (clamp (static_cast<T> (sample + SignedInt32_Max + 1), SampleLimit::UnsignedInt32_Min, SampleLimit::UnsignedInt32_Max));
1378
}
1379
1380
0 commit comments