summaryrefslogtreecommitdiff
path: root/src/py_value.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2016-11-12 18:17:44 -0800
committerJohn Wiegley <johnw@newartisans.com>2016-11-12 18:18:10 -0800
commitf1dc15a4c7de39945cda45fd93e11020921c5c2b (patch)
tree681cd89d584d176d99fcbd41c38a8c29a2faaf43 /src/py_value.cc
parent602a4340e220a85b8dda5c6abcacea9e1be1fb99 (diff)
downloadfork-ledger-f1dc15a4c7de39945cda45fd93e11020921c5c2b.tar.gz
fork-ledger-f1dc15a4c7de39945cda45fd93e11020921c5c2b.tar.bz2
fork-ledger-f1dc15a4c7de39945cda45fd93e11020921c5c2b.zip
Make bool implicitly convertible in Python to value_t
Diffstat (limited to 'src/py_value.cc')
-rw-r--r--src/py_value.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/py_value.cc b/src/py_value.cc
index 5f93b7b3..655337ba 100644
--- a/src/py_value.cc
+++ b/src/py_value.cc
@@ -371,6 +371,7 @@ void export_value()
register_optional_to_python<value_t>();
+ implicitly_convertible<bool, value_t>();
implicitly_convertible<long, value_t>();
implicitly_convertible<string, value_t>();
implicitly_convertible<amount_t, value_t>();