From 4e7046063babd95e100ab202d52ca5776997c80c Mon Sep 17 00:00:00 2001 From: Kan Chen Date: Thu, 21 May 2020 18:42:56 +0800 Subject: [PATCH] Fix #1874: it works on both MSVC 2017 and other platforms. --- Eigen/src/Core/products/GeneralBlockPanelKernel.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Eigen/src/Core/products/GeneralBlockPanelKernel.h b/Eigen/src/Core/products/GeneralBlockPanelKernel.h index 73198b3a2..afef6762f 100644 --- a/Eigen/src/Core/products/GeneralBlockPanelKernel.h +++ b/Eigen/src/Core/products/GeneralBlockPanelKernel.h @@ -2679,9 +2679,9 @@ struct gemm_pack_rhs::size, HalfPacketSize = unpacket_traits::size, - QuarterPacketSize = unpacket_traits::size, - HasHalf = (int)HalfPacketSize < (int)PacketSize, - HasQuarter = (int)QuarterPacketSize < (int)HalfPacketSize }; + QuarterPacketSize = unpacket_traits::size}; + bool HasHalf = (int)HalfPacketSize < (int)PacketSize; + bool HasQuarter = (int)QuarterPacketSize < (int)HalfPacketSize; EIGEN_DONT_INLINE void operator()(Scalar* blockB, const DataMapper& rhs, Index depth, Index cols, Index stride=0, Index offset=0) { EIGEN_ASM_COMMENT("EIGEN PRODUCT PACK RHS ROWMAJOR");