Skip to content
Snippets Groups Projects
Commit 879e156b authored by Christian Engwer's avatar Christian Engwer
Browse files

correctly parse false/no

[[Imported from SVN: r6152]]
parent 66c35c86
Branches
Tags
No related merge requests found
......@@ -203,7 +203,7 @@ bool ParameterTree::get(const string& key, bool defaultValue) const
return true;
if (ret == "no" || ret == "false")
return true;
return false;
return (atoi(ret.c_str()) !=0 );
}
......@@ -251,7 +251,7 @@ namespace Dune {
return true;
if (ret == "no" || ret == "false")
return true;
return false;
return (std::atoi(ret.c_str()) !=0 );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment