[go: up one dir, main page]

Implicit conversion loses integer precision: 'Index' (aka 'long') to 'int' when using Clang in Block.h

Submitted by sha..@..il.com

Assigned to Nobody

Link to original bugzilla bug (#397)
Version: 3.2
Platform: x86 - 64-bit

Description

When using Eigen on Mac OS X in Xcode with default build settings, Clang gives the following warning for Block.h for row 340 and 341:

Implicit conversion loses integer precision: 'Index' (aka 'long') to 'int'

The obvious solution is to change m_outerStride to be of type Index, just as the return type of m_xpr.outerStride() and m_xpr.innerStride().

Depends on

#808 (closed)

Blocking

#558 (closed)

Edited by Eigen Bugzilla