From 2c4cace56ca2a937d73700c2e8348dadb711758b Mon Sep 17 00:00:00 2001 From: Georg Drenkhahn Date: Mon, 22 Sep 2014 15:54:34 +0200 Subject: Using Index instead of hard coded int type to prevent potential implicit integer conversion --- Eigen/src/Core/GeneralProduct.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Eigen/src/Core/GeneralProduct.h') diff --git a/Eigen/src/Core/GeneralProduct.h b/Eigen/src/Core/GeneralProduct.h index e05ff8dce..4eb01b1b3 100644 --- a/Eigen/src/Core/GeneralProduct.h +++ b/Eigen/src/Core/GeneralProduct.h @@ -261,7 +261,7 @@ template<> struct gemv_dense_sense_selector if(!evalToDest) { #ifdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN - int size = dest.size(); + Index size = dest.size(); EIGEN_DENSE_STORAGE_CTOR_PLUGIN #endif if(!alphaIsCompatible) @@ -327,7 +327,7 @@ template<> struct gemv_dense_sense_selector if(!DirectlyUseRhs) { #ifdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN - int size = actualRhs.size(); + Index size = actualRhs.size(); EIGEN_DENSE_STORAGE_CTOR_PLUGIN #endif Map(actualRhsPtr, actualRhs.size()) = actualRhs; -- cgit v1.2.3