diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-10-07 10:13:05 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-10-07 10:13:38 +0300 |
commit | 1b226b02471f2fab5e5e6f79b6593636274d2320 (patch) | |
tree | 2ab0efa9c396c36ec41697060c81d506428e5fa9 /sc | |
parent | 4bb67e666b2ca36a5caa5c3f22d0f1e802db527e (diff) |
Don't call comphelper::rng::uniform_real_distribution(a,b) with a==b
Change-Id: I95a3ac8da83e02001de13af8d31a04fe0d654dc0
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/opencl/opencl_device.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/core/opencl/opencl_device.cxx b/sc/source/core/opencl/opencl_device.cxx index 6b99758dacc3..917fd24de48a 100644 --- a/sc/source/core/opencl/opencl_device.cxx +++ b/sc/source/core/opencl/opencl_device.cxx @@ -171,6 +171,8 @@ double timerCurrent(timer* mytimer) /* Random number generator */ double random(double min, double max) { + if (min == max) + return min; return comphelper::rng::uniform_real_distribution(min, max); } |