Kaydet (Commit) 4fccc437 authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

loplugin:fpcomparison in opencl/

Change-Id: Ia5b4a5010afd72ce59629dbc9b2045177a155182
Reviewed-on: https://gerrit.libreoffice.org/21867Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 777ad8f5
......@@ -29,6 +29,7 @@
#include <opencl/openclwrapper.hxx>
#include <opencl/platforminfo.hxx>
#include <sal/log.hxx>
#include <rtl/math.hxx>
#include "opencl_device.hxx"
......@@ -175,7 +176,7 @@ double timerCurrent(timer* mytimer)
/* Random number generator */
double random(double min, double max)
{
if (min == max)
if (rtl::math::approxEqual(min, max))
return min;
return comphelper::rng::uniform_real_distribution(min, max);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment