Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment