From: <sv...@op...> - 2024-10-31 20:23:15
|
Author: sagamusix Date: Thu Oct 31 21:23:03 2024 New Revision: 22043 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22043 Log: [Fix] Fix djgpp builds. Modified: trunk/OpenMPT/soundlib/InstrumentSynth.cpp Modified: trunk/OpenMPT/soundlib/InstrumentSynth.cpp ============================================================================== --- trunk/OpenMPT/soundlib/InstrumentSynth.cpp Thu Oct 31 21:20:52 2024 (r22042) +++ trunk/OpenMPT/soundlib/InstrumentSynth.cpp Thu Oct 31 21:23:03 2024 (r22043) @@ -980,7 +980,7 @@ 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; } |