Hello,
Here is another very simple patch required to fix compilation with gcc5
and clang as the current code results in a warning in 64 bit builds (which
are the default under the current Linux systems) when assigning a 64 bit
result of std::vector<>::size() to "unsigned int selection" and then an
error when using std::min() with two different types.
Instead of spelling out the type precisely, I think using C++11 auto makes
the code more clear and more correct as we don't really care about the type
of the "selection" variable here, just that it's of the same type as size(),
so all I did was to replace the hardcoded type of "selection" variable with
"auto".
Thanks in advance for applying this,
VZ