Commit c29c5024 authored by Chuanren Wu's avatar Chuanren Wu

small improvements

parent 41f07718
......@@ -13,7 +13,7 @@
template<class T> int atLeast1(T x)
{
return x >= 1 ? static_cast<int>(x) : 1;
return x > 1 ? static_cast<int>(x) : 1;
}
static void redist(
......@@ -88,6 +88,6 @@ std::vector<int> discretizeImpl(
#ifndef NDEBUG
std::cout << iterations << " iterations used\n";
#endif
return res;
return res;
}
}
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