diff --git a/src/value.cpp b/src/value.cpp index 4c3b2f277..ecb8a81ed 100644 --- a/src/value.cpp +++ b/src/value.cpp @@ -441,7 +441,7 @@ struct convert template value_bool operator()(T val) const { - return val > 0 ? true : false; + return val == 0 ? false : true; } };