#6443 Cast maxscale from double to float for scale calculation.

This commit is contained in:
Bob Paulin 2016-04-21 07:47:13 -05:00
parent b973b73ae7
commit bb8faec885

View File

@ -1372,7 +1372,7 @@ void cvCreateTestSamples( const char* infoname,
if( maxscale < 1.0F ) continue;
scale = (maxscale - 1.0F) * rand() / RAND_MAX + 1.0F;
scale = ((float)maxscale - 1.0F) * rand() / RAND_MAX + 1.0F;
width = (int) (scale * winwidth);
height = (int) (scale * winheight);