summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-05 03:49:14 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-05 03:49:14 -0400
commit327fdca8f43bee675c0e1bfd5e3c3dca6bafc5d0 (patch)
treece6101d95cbef8c9ccec6f1e4dd4424cdadded10 /src
parent7f5f53de8259cd2a5dc2e7b8de1ee0bbf3757617 (diff)
downloadfork-ledger-327fdca8f43bee675c0e1bfd5e3c3dca6bafc5d0.tar.gz
fork-ledger-327fdca8f43bee675c0e1bfd5e3c3dca6bafc5d0.tar.bz2
fork-ledger-327fdca8f43bee675c0e1bfd5e3c3dca6bafc5d0.zip
Display value booleans as 0 and 1.
Diffstat (limited to 'src')
-rw-r--r--src/value.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/value.cc b/src/value.cc
index c7ef8617..23da4263 100644
--- a/src/value.cc
+++ b/src/value.cc
@@ -1634,10 +1634,7 @@ void value_t::print(std::ostream& out,
break;
case BOOLEAN:
- if (as_boolean())
- out << "true";
- else
- out << "false";
+ out << (as_boolean() ? "1" : "0");
break;
case DATETIME: