From 0eedcd80611c3647b5301c90cf8a9d20a55fa9f4 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Tue, 7 Apr 2020 19:45:28 +0200 Subject: [PATCH] fixed Mac compilation error --- src/server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.cpp b/src/server.cpp index c4cb771c..72ab96be 100755 --- a/src/server.cpp +++ b/src/server.cpp @@ -1628,7 +1628,7 @@ void CServer::CreateLevelsForAllConChannels ( const int i // mono for ( i = 0; i < SYSTEM_FRAME_SIZE_SAMPLES; i += 3 ) { - dCurLevel = std::max ( dCurLevel, std::abs ( static_cast ( vecsData[i] ) ) ); + dCurLevel = std::max ( dCurLevel, fabs ( static_cast ( vecsData[i] ) ) ); } } else @@ -1637,7 +1637,7 @@ void CServer::CreateLevelsForAllConChannels ( const int i for ( i = 0, k = 0; i < SYSTEM_FRAME_SIZE_SAMPLES; i += 3, k += 6 ) { double sMix = ( static_cast ( vecsData[k] ) + vecsData[k + 1] ) / 2; - dCurLevel = std::max ( dCurLevel, std::abs ( sMix ) ); + dCurLevel = std::max ( dCurLevel, fabs ( sMix ) ); } }