From bb59c22dc99517080276b61e09c53c00bbdb844d Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 16 Dec 2009 12:48:15 +0100 Subject: [PATCH] fix compilation when mixing types --- Eigen/src/Core/Transpose.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Eigen/src/Core/Transpose.h b/Eigen/src/Core/Transpose.h index 796ec8573..1e037e618 100644 --- a/Eigen/src/Core/Transpose.h +++ b/Eigen/src/Core/Transpose.h @@ -293,7 +293,7 @@ struct ei_check_transpose_aliasing_selector { static bool run(const Scalar* dest, const OtherDerived& src) { - return (ei_blas_traits::IsTransposed != DestIsTranposed) && (dest==ei_extract_data(src)); + return (ei_blas_traits::IsTransposed != DestIsTranposed) && (dest==(Scalar*)ei_extract_data(src)); } }; @@ -302,8 +302,8 @@ struct ei_check_transpose_aliasing_selector& src) { - return ((ei_blas_traits::IsTransposed != DestIsTranposed) && dest==ei_extract_data(src.lhs())) - || ((ei_blas_traits::IsTransposed != DestIsTranposed) && dest==ei_extract_data(src.rhs())); + return ((ei_blas_traits::IsTransposed != DestIsTranposed) && dest==(Scalar*)ei_extract_data(src.lhs())) + || ((ei_blas_traits::IsTransposed != DestIsTranposed) && dest==(Scalar*)ei_extract_data(src.rhs())); } };