Commit 02b06e8f authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

tests/simple_model_helper.h::sign_flag: replace unsafe floating point comparison

parent 56cc150f
......@@ -15,8 +15,8 @@ var_scale(int datatype, double *mscale, double *mrscale);
static inline double
sign_flat(double v)
{
if (v == 0.0)
return 0.0;
if (!(v < 0.0 || v > 0.0)) return 0.0;
// if (v == 0.0) return 0.0;
return v;
}
......
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