* ./vlsisapd/openChams:
- In Circuit: Forgot to lower in stringAsBool().
This commit is contained in:
parent
e7011ad480
commit
4c876122d1
|
@ -85,8 +85,11 @@ namespace OpenChams {
|
||||||
|
|
||||||
bool stringAsBool ( const string& s )
|
bool stringAsBool ( const string& s )
|
||||||
{
|
{
|
||||||
if ( headCompare("true" ,s) or headCompare("1",s) ) return true;
|
string lower(s);
|
||||||
if ( headCompare("false",s) or headCompare("0",s) ) return false;
|
boost::algorithm::to_lower(lower);
|
||||||
|
|
||||||
|
if ( headCompare("true" ,lower) or headCompare("1",lower) ) return true;
|
||||||
|
if ( headCompare("false",lower) or headCompare("0",lower) ) return false;
|
||||||
cerr << "[WARNING] Unknown booleean value <" << s << "> (treated as false)."<< endl;
|
cerr << "[WARNING] Unknown booleean value <" << s << "> (treated as false)."<< endl;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue