From e3a8431a4aae2f332504627c149f5474b40a974b Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 17 Dec 2008 16:04:21 +0000 Subject: found one bug in the previous ++ changes --- Eigen/src/Core/CommaInitializer.h | 8 ++++---- Eigen/src/Core/MathFunctions.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'Eigen/src/Core') diff --git a/Eigen/src/Core/CommaInitializer.h b/Eigen/src/Core/CommaInitializer.h index 178f5ea0f..ed28e0ca3 100644 --- a/Eigen/src/Core/CommaInitializer.h +++ b/Eigen/src/Core/CommaInitializer.h @@ -27,13 +27,13 @@ #define EIGEN_COMMAINITIALIZER_H /** \class CommaInitializer - * + * * \brief Helper class used by the comma initializer operator * * This class is internally used to implement the comma initializer feature. It is * the return type of MatrixBase::operator<<, and most of the time this is the only * way it is used. - * + * * \sa \ref MatrixBaseCommaInitRef "MatrixBase::operator<<", CommaInitializer::finished() */ template @@ -67,7 +67,7 @@ struct CommaInitializer ei_assert(m_col diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index e54618bf0..42efba341 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -101,7 +101,7 @@ template<> inline float ei_random(float a, float b) int i; do { i = ei_random(256*int(a),256*int(b)); } while(i==0); - return i/256.f; + return float(i)/256.f; #else return a + (b-a) * float(std::rand()) / float(RAND_MAX); #endif -- cgit v1.2.3