Skip to content

Commit 782f70b

Browse files
committed
rename variable that was hiding another
1 parent 7bf0283 commit 782f70b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

AudioFile.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -673,9 +673,9 @@ bool AudioFile<T>::decodeWaveFile (const std::vector<uint8_t>& fileData)
673673

674674
if (audioFormat == WavAudioFormat::IEEEFloat && std::is_floating_point_v<T>)
675675
{
676-
float f;
677-
memcpy (&f, &sampleAsInt, sizeof(int32_t));
678-
sample = static_cast<T> (f);
676+
float floatValue;
677+
memcpy (&floatValue, &sampleAsInt, sizeof(int32_t));
678+
sample = static_cast<T> (floatValue);
679679
}
680680
else // assume PCM
681681
{

0 commit comments

Comments
 (0)