diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2010-06-24 09:56:59 +0200 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2010-06-24 09:56:59 +0200 |
commit | 22a6cb2dc0b3eb685c46834c52da31d4be78f1a6 (patch) | |
tree | 2d384a996cc9c5a9d0c3b46d78c6bcbea78029e0 /Eigen/src/Core/Product.h | |
parent | 83f1b747e7016827ff737497b68be7229bde55c2 (diff) |
Fix compilation when the memory layout is RowMajor.
Diffstat (limited to 'Eigen/src/Core/Product.h')
-rw-r--r-- | Eigen/src/Core/Product.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/Product.h b/Eigen/src/Core/Product.h index 6e54f2eca..7e68a5724 100644 --- a/Eigen/src/Core/Product.h +++ b/Eigen/src/Core/Product.h @@ -381,11 +381,11 @@ template<> struct ei_gemv_selector<OnTheRight,RowMajor,true> Scalar* EIGEN_RESTRICT rhs_data; if (DirectlyUseRhs) - rhs_data = &actualRhs.const_cast_derived().coeffRef(0); + rhs_data = reinterpret_cast<Scalar* EIGEN_RESTRICT>(&actualRhs.const_cast_derived().coeffRef(0)); else { rhs_data = ei_aligned_stack_new(Scalar, actualRhs.size()); - Map<typename _ActualRhsType::PlainObject>(rhs_data, actualRhs.size()) = actualRhs; + Map<typename _ActualRhsType::PlainObject>(reinterpret_cast<Scalar*>(rhs_data), actualRhs.size()) = actualRhs; } ei_cache_friendly_product_rowmajor_times_vector |