diff --git a/src/Math/Complex.h b/src/Math/Complex.h index 2a2cb2349..2fd77e6ae 100644 --- a/src/Math/Complex.h +++ b/src/Math/Complex.h @@ -339,7 +339,12 @@ template class Complex { * @see isNormalized() */ inline T length() const { + /** @todo Remove when NaCl's newlib has this fixed */ + #ifndef CORRADE_TARGET_NACL_NEWLIB return std::hypot(_real, _imaginary); + #else + return std::sqrt(dot()); + #endif } /**