From 93e86b0884fa9ad6f6fe02645ce8dc15c2a6daf9 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Thu, 11 Feb 2010 11:31:22 +0100 Subject: [PATCH] Fixed typos. Replace NumTraits::dummy_precision() (three locations) by false in order to suppress warnings. --- Eigen/src/Core/MathFunctions.h | 6 +++--- Eigen/src/Core/NumTraits.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index 1a4561555..d9119c245 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -321,15 +321,15 @@ template<> inline bool ei_random() { return (ei_random(0,1) == 1); } -inline bool ei_isMuchSmallerThan(bool a, bool, bool = NumTraits::dummy_precision()) +inline bool ei_isMuchSmallerThan(bool a, bool, bool = false/*NumTraits::dummy_precision()*/) { return !a; } -inline bool ei_isApprox(bool a, bool b, bool = NumTraits::dummy_precision()) +inline bool ei_isApprox(bool a, bool b, bool = false/*NumTraits::dummy_precision()*/) { return a == b; } -inline bool ei_isApproxOrLessThan(bool a, bool b, bool = NumTraits::dummy_precision()) +inline bool ei_isApproxOrLessThan(bool a, bool b, bool = false/*NumTraits::dummy_precision()*/) { return int(a) <= int(b); } diff --git a/Eigen/src/Core/NumTraits.h b/Eigen/src/Core/NumTraits.h index 1baf62496..4f0cc04eb 100644 --- a/Eigen/src/Core/NumTraits.h +++ b/Eigen/src/Core/NumTraits.h @@ -47,7 +47,7 @@ * and to \c 1 otherwise. * \li An epsilon() function which, unlike std::numeric_limits::epsilon(), returns a \a Real instead of a \a T. * \li A dummy_precision() function returning a weak epsilon value. It is mainly used by the fuzzy comparison operators. - * \li Two higest() and lowest() functions returning the higest and lowest possible values respectively. + * \li Two highest() and lowest() functions returning the highest and lowest possible values respectively. */ template struct NumTraits;