value::to_bool() - sync logic with Python bool() operator e.g if 0 -> false : else -> true
This commit is contained in:
parent
4e59b4c7c3
commit
2e175a16fe
1 changed files with 1 additions and 1 deletions
|
@ -441,7 +441,7 @@ struct convert<value_bool>
|
||||||
template<typename T>
|
template<typename T>
|
||||||
value_bool operator()(T val) const
|
value_bool operator()(T val) const
|
||||||
{
|
{
|
||||||
return val > 0 ? true : false;
|
return val == 0 ? false : true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue