diff --git a/packages/addons/depends/audio/libopenmpt/patches/libopenmpt-bug-769.patch b/packages/addons/depends/audio/libopenmpt/patches/libopenmpt-bug-769.patch new file mode 100644 index 0000000000..c8db0644d5 --- /dev/null +++ b/packages/addons/depends/audio/libopenmpt/patches/libopenmpt-bug-769.patch @@ -0,0 +1,14 @@ +Index: soundlib/tuning.cpp +=================================================================== +--- a/soundlib/tuning.cpp (revision 6294) ++++ b/soundlib/tuning.cpp (working copy) +@@ -375,7 +375,8 @@ + if(!IsOfType(TT_GROUPGEOMETRIC)) return 0; + + if(note >= 0) return note % GetGroupSize(); +- else return (GetGroupSize() - (abs(note) % GetGroupSize())) % GetGroupSize(); ++ // static_cast(note) because g++-6 template-disables std::abs overloads for 8bit and 16bit integer types via std::enable_if. ++ else return (GetGroupSize() - (std::abs(static_cast(note)) % GetGroupSize())) % GetGroupSize(); + } + +