diff --git a/modules/ml/src/svm.cpp b/modules/ml/src/svm.cpp index 7ebecf8b87..f7cf28d5a5 100644 --- a/modules/ml/src/svm.cpp +++ b/modules/ml/src/svm.cpp @@ -1274,7 +1274,7 @@ void CvSVM::get_svm_detector( std::vector< float > & detector ) const } detector.push_back( svi ); } - detector.push_back( -decision_func->rho ); + detector.push_back( (float)-decision_func->rho ); } bool CvSVM::set_params( const CvSVMParams& _params )