Skip to content

Commit

Permalink
[Fix] Fix compilation with custom mpt::span implementation.
Browse files Browse the repository at this point in the history
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22118 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
sagamusix committed Nov 8, 2024
1 parent e7fee84 commit c41de33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soundlib/Load_fc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ bool CSoundFile::ReadFC(FileReader &file, ModLoadingFlags loadFlags)
return false;

FileReader smpFile{mpt::as_span(SampleData)};
const mpt::span<const uint8> sampleLengths = isFC14 ? mpt::as_span(waveTableLengths) : mpt::as_span(SampleLengths);
const auto sampleLengths = isFC14 ? mpt::span<const uint8>(waveTableLengths) : mpt::as_span(SampleLengths);
SampleIO sampleIO{SampleIO::_8bit, SampleIO::mono, SampleIO::bigEndian, SampleIO::signedPCM};
for(SAMPLEINDEX smp = 0; smp < sampleLengths.size(); smp++)
{
Expand Down

0 comments on commit c41de33

Please sign in to comment.