diff --git a/modules/core/src/mathfuncs.cpp b/modules/core/src/mathfuncs.cpp index 3b84e9d92..4b5327116 100644 --- a/modules/core/src/mathfuncs.cpp +++ b/modules/core/src/mathfuncs.cpp @@ -2436,7 +2436,7 @@ int cv::solveCubic( InputArray _coeffs, OutputArray _roots ) x2 = t0 * cos(t1 + (4.*CV_PI/3)) - t2; n = 3; } - else if( d == 0) + else if( d == 0 ) { if(R >= 0) {