#6443 Cast maxscale from double to float for scale calculation.
This commit is contained in:
parent
b973b73ae7
commit
bb8faec885
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user