From 18884f17d7532c76e0d786bf4e3365caba35bed3 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 18 Jul 2016 15:05:17 +0200 Subject: [PATCH] Remove static constant declaration: this enforces compiler to generate costly code for thread safety. --- Eigen/src/Geometry/Quaternion.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Geometry/Quaternion.h b/Eigen/src/Geometry/Quaternion.h index fc5175f01..c4a0eabb5 100644 --- a/Eigen/src/Geometry/Quaternion.h +++ b/Eigen/src/Geometry/Quaternion.h @@ -726,7 +726,7 @@ QuaternionBase::slerp(const Scalar& t, const QuaternionBase::epsilon(); + const Scalar one = Scalar(1) - NumTraits::epsilon(); Scalar d = this->dot(other); Scalar absD = abs(d);