Merge pull request #2114 from kazuki-ma:SparseMat_convertTo_typofix_24

This commit is contained in:
Roman Donchenko 2014-01-09 13:24:20 +04:00 committed by OpenCV Buildbot
commit 58882e5c22

View File

@ -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)