mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
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:
parent
d8c66707cc
commit
16b14d091b
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user