commit | dacb469bc93b5b8578afad19d327606659ec3a55 | [log] [tgz] |
---|---|---|
author | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | Thu May 05 13:35:45 2016 +0200 |
committer | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | Thu May 05 13:35:45 2016 +0200 |
tree | 8fdff5d859a812adfcc8ff01826b5be3096bff05 | |
parent | 62b710072e282ad70bbcb38468367f7f99232d32 [diff] [blame] |
Enable and fix -Wdouble-conversion warnings
diff --git a/test/sparse_basic.cpp b/test/sparse_basic.cpp index cb8ebae..aa38825 100644 --- a/test/sparse_basic.cpp +++ b/test/sparse_basic.cpp
@@ -232,11 +232,11 @@ for (Index i=0; i<m2.rows(); ++i) { float x = internal::random<float>(0,1); - if (x<0.1) + if (x<0.1f) { // do nothing } - else if (x<0.5) + else if (x<0.5f) { countFalseNonZero++; m2.insert(i,j) = Scalar(0);