diff --git a/Eigen/src/Core/RandomImpl.h b/Eigen/src/Core/RandomImpl.h index 445376c7b..e82da9660 100644 --- a/Eigen/src/Core/RandomImpl.h +++ b/Eigen/src/Core/RandomImpl.h @@ -47,7 +47,7 @@ struct eigen_random_device { using ReturnType = int; static constexpr int Entropy = meta_floor_log2<(unsigned int)(RAND_MAX) + 1>::value; static constexpr ReturnType Highest = RAND_MAX; - static EIGEN_DEVICE_FUNC inline ReturnType run() { return std::rand(); }; + static EIGEN_DEVICE_FUNC inline ReturnType run() { return std::rand(); } }; // Fill a built-in unsigned integer with numRandomBits beginning with the least significant bit diff --git a/Eigen/src/Core/util/SymbolicIndex.h b/Eigen/src/Core/util/SymbolicIndex.h index befb485e8..9668f1e94 100644 --- a/Eigen/src/Core/util/SymbolicIndex.h +++ b/Eigen/src/Core/util/SymbolicIndex.h @@ -260,7 +260,7 @@ class SymbolValue> : public BaseExpr){}; + constexpr SymbolValue(internal::FixedInt) {} /** \returns the stored value of the symbol */ constexpr Index value() const { return static_cast(N); }