Index: soundlib/tuning.cpp =================================================================== --- soundlib/tuning.cpp (revision 6294) +++ 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(); }