mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
libopenmpt: fix leftover from version bump
- the patch should no be needed anymore because it was fixed in libopenmpt 0.2-beta17
This commit is contained in:
parent
3d6973a0fe
commit
6cba6b53a6
@ -1,14 +0,0 @@
|
|||||||
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<int>(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<int>(note)) % GetGroupSize())) % GetGroupSize();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user