summaryrefslogtreecommitdiff
path: root/binary.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-24 09:02:47 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-24 09:02:47 -0400
commit643f2d33cf24bbae4a13acfbfc6af5fe8439f905 (patch)
treec694588e1b4bd03b0903764975fce65f15aba51c /binary.cc
parent7409b050bee226fb7bb0b89a10d9c206d8797d70 (diff)
downloadfork-ledger-643f2d33cf24bbae4a13acfbfc6af5fe8439f905.tar.gz
fork-ledger-643f2d33cf24bbae4a13acfbfc6af5fe8439f905.tar.bz2
fork-ledger-643f2d33cf24bbae4a13acfbfc6af5fe8439f905.zip
More work toward getting the textual parser working again. Since this means
that value expressions must work, there are a lot of details involved.
Diffstat (limited to 'binary.cc')
-rw-r--r--binary.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/binary.cc b/binary.cc
index 4b5786d1..c1c2321e 100644
--- a/binary.cc
+++ b/binary.cc
@@ -827,16 +827,16 @@ void write_value(std::ostream& out, const value_t& val)
switch (val.type()) {
case value_t::BOOLEAN:
- write_bool(out, const_cast<value_t&>(val).as_boolean_lval());
+ write_bool(out, val.as_boolean());
break;
case value_t::INTEGER:
- write_long(out, const_cast<value_t&>(val).as_long_lval());
+ write_long(out, val.as_long());
break;
case value_t::DATETIME:
- write_number(out, const_cast<value_t&>(val).as_datetime_lval());
+ write_number(out,val.as_datetime());
break;
case value_t::AMOUNT:
- write_amount(out, const_cast<value_t&>(val).as_amount_lval());
+ write_amount(out, val.as_amount());
break;
//case value_t::BALANCE: