1
0
mirror of https://github.com/danog/libtgvoip.git synced 2024-11-27 04:34:42 +01:00

fixed build on android

This commit is contained in:
Grishka 2018-11-22 00:05:19 +03:00
parent 5caaaafa42
commit 9dd089d2bb

View File

@ -66,7 +66,7 @@ void ComputeInitialInverseFilterCoefficients(
// Avoid division by numbers close to zero.
constexpr float kMinErrorMagnitude = 1e-6f;
if (std::fabs(error) < kMinErrorMagnitude) {
error = std::copysign(kMinErrorMagnitude, error);
error =static_cast<float>(copysign(kMinErrorMagnitude, error));
}
reflection_coeff /= -error;