mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix some implicit literal to Scalar conversions in SparseCore
(cherry picked from commit afa8d13532)
This commit is contained in:
committed by
Christoph Hertzberg
parent
84911f9c05
commit
9fc3d9f3ca
@@ -101,7 +101,7 @@ public:
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_value = 0; // this is to avoid a compilation warning
|
m_value = Scalar(0); // this is to avoid a compilation warning
|
||||||
m_id = -1;
|
m_id = -1;
|
||||||
}
|
}
|
||||||
return *this;
|
return *this;
|
||||||
|
|||||||
@@ -1233,7 +1233,7 @@ typename SparseMatrix<_Scalar,_Options,_StorageIndex>::Scalar& SparseMatrix<_Sca
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_data.index(p) = convert_index(inner);
|
m_data.index(p) = convert_index(inner);
|
||||||
return (m_data.value(p) = 0);
|
return (m_data.value(p) = Scalar(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(m_data.size() != m_data.allocatedSize())
|
if(m_data.size() != m_data.allocatedSize())
|
||||||
|
|||||||
Reference in New Issue
Block a user