Commit 97ff8cb2 authored by Juha Reunanen's avatar Juha Reunanen Committed by Davis E. King

Noticed compiler warning C4800: 'double': forcing value to bool 'true' or…

Noticed compiler warning C4800: 'double': forcing value to bool 'true' or 'false' (performance warning) (#538)

- suggesting to change the test to what perhaps was the original intention
parent 523e020e
......@@ -109,7 +109,7 @@ namespace
results = basic_elastic_net(X, Y, ridge_lambda, lasso_budget*s, eps);
results2 = solver(ridge_lambda, lasso_budget*s);
dlog << LINFO << "error: "<< max(abs(results - results2));
DLIB_TEST(max(abs(results - results2) < 1e-3));
DLIB_TEST(max(abs(results - results2)) < 1e-3);
}
}
} a;
......
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