Commit 351ecbbc authored by Andrey Kamaev's avatar Andrey Kamaev

Repair build

parent 15e125c7
...@@ -330,10 +330,10 @@ void CvSVMKernel::calc_intersec( int vcount, int var_count, const float** vecs, ...@@ -330,10 +330,10 @@ void CvSVMKernel::calc_intersec( int vcount, int var_count, const float** vecs,
const float* sample = vecs[j]; const float* sample = vecs[j];
double s = 0; double s = 0;
for( k = 0; k <= var_count - 4; k += 4 ) for( k = 0; k <= var_count - 4; k += 4 )
s += min(sample[k],another[k]) + min(sample[k+1],another[k+1]) + s += std::min(sample[k],another[k]) + std::min(sample[k+1],another[k+1]) +
min(sample[k+2],another[k+2]) + min(sample[k+3],another[k+3]); std::min(sample[k+2],another[k+2]) + std::min(sample[k+3],another[k+3]);
for( ; k < var_count; k++ ) for( ; k < var_count; k++ )
s += min(sample[k],another[k]); s += std::min(sample[k],another[k]);
results[j] = (Qfloat)(s); results[j] = (Qfloat)(s);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment