Skip to content

Commit

Permalink
[Fix] Fix djgpp builds.
Browse files Browse the repository at this point in the history
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22043 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
sagamusix committed Oct 31, 2024
1 parent 17e3504 commit b8a4c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soundlib/InstrumentSynth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ bool InstrumentSynth::States::State::HandleFCVolumeBend(bool forceRun)
int32 target = m_volumeFactor + m_fcVolumeBendSpeed * 256;
if(target < 0 || target >= 32768)
m_fcVolumeBendRemain = 0;
m_volumeFactor = static_cast<uint16>(std::clamp(target, 0, 16384));
m_volumeFactor = static_cast<uint16>(std::clamp(target, int32(0), int32(16384)));
}
return true;
}
Expand Down

0 comments on commit b8a4c47

Please sign in to comment.