mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
bug #1039: Redefining EIGEN_DEFAULT_DENSE_INDEX_TYPE may lead to errors
This commit is contained in:
parent
b8df8815f4
commit
ea87561564
@ -480,7 +480,7 @@ struct dense_assignment_loop<Kernel, SliceVectorizedTraversal, NoUnrolling>
|
|||||||
dstAlignment = alignable ? Aligned : int(dstIsAligned)
|
dstAlignment = alignable ? Aligned : int(dstIsAligned)
|
||||||
};
|
};
|
||||||
const Scalar *dst_ptr = &kernel.dstEvaluator().coeffRef(0,0);
|
const Scalar *dst_ptr = &kernel.dstEvaluator().coeffRef(0,0);
|
||||||
if((!bool(dstIsAligned)) && (Index(dst_ptr) % sizeof(Scalar))>0)
|
if((!bool(dstIsAligned)) && (size_t(dst_ptr) % sizeof(Scalar))>0)
|
||||||
{
|
{
|
||||||
// the pointer is not aligend-on scalar, so alignment is not possible
|
// the pointer is not aligend-on scalar, so alignment is not possible
|
||||||
return dense_assignment_loop<Kernel,DefaultTraversal,NoUnrolling>::run(kernel);
|
return dense_assignment_loop<Kernel,DefaultTraversal,NoUnrolling>::run(kernel);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user