Simplify "all" value calculation to make it easier to understand

No idea why I was shifting 2 instead of 1 here.
This commit is contained in:
Sude 2015-09-03 12:42:00 +03:00
parent d8c66707cc
commit 16b14d091b

View File

@ -432,7 +432,7 @@ unsigned int Util::getOptionValue(const std::string& str, const std::vector<Glob
boost::match_results<std::string::const_iterator> what;
if (str == "all")
{
value = (2 << (options.size() - 1)) - 1;
value = (1 << options.size()) - 1;
}
else if (boost::regex_search(str, what, expression))
{