Merge pull request #2114 from kazuki-ma:SparseMat_convertTo_typofix_24
This commit is contained in:
commit
58882e5c22
@ -2401,7 +2401,7 @@ template<typename _Tp> inline SparseMat_<_Tp>::SparseMat_(const SparseMat& m)
|
||||
if( m.type() == DataType<_Tp>::type )
|
||||
*this = (const SparseMat_<_Tp>&)m;
|
||||
else
|
||||
m.convertTo(this, DataType<_Tp>::type);
|
||||
m.convertTo(*this, DataType<_Tp>::type);
|
||||
}
|
||||
|
||||
template<typename _Tp> inline SparseMat_<_Tp>::SparseMat_(const SparseMat_<_Tp>& m)
|
||||
|
Loading…
Reference in New Issue
Block a user