1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

ocl: fix warnings from GCC 4.8, update Haar

This commit is contained in:
Alexander Alekhin
2013-10-11 18:42:17 +04:00
parent d5723480e1
commit 723af15228
2 changed files with 10 additions and 26 deletions
+4 -4
View File
@@ -1290,14 +1290,14 @@ void CV_FitLineTest::generate_point_set( void* pointsSet )
t = (float)((cvtest::randReal(rng)-0.5)*low_high_range*2);
for( k = 0; k < n; k++ )
{
p[k] = (float)((cvtest::randReal(rng)-0.5)*max_noise*2 + t*line0[k] + line0[k+n]);
if( point_type == CV_32S )
for( k = 0; k < n; k++ )
if( point_type == CV_32S )
pi[k] = cvRound(p[k]);
else
for( k = 0; k < n; k++ )
else
pf[k] = p[k];
}
}
}