mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
Merge pull request #12396 from LaurentBerger:I12392
This commit is contained in:
commit
49a1328046
@ -584,6 +584,11 @@ void RNG::fill( InputOutputArray _mat, int disttype,
|
||||
}
|
||||
ip[j][1] = cvCeil(a);
|
||||
int idiff = ip[j][0] = cvFloor(b) - ip[j][1] - 1;
|
||||
if (idiff < 0)
|
||||
{
|
||||
idiff = 0;
|
||||
ip[j][0] = 0;
|
||||
}
|
||||
double diff = b - a;
|
||||
|
||||
fast_int_mode = fast_int_mode && diff <= 4294967296. && (idiff & (idiff+1)) == 0;
|
||||
|
Loading…
Reference in New Issue
Block a user