summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-24 13:19:00 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-24 13:29:08 -0400
commit38dd1b86554ded5982857324873027cdb3be33ee (patch)
treea2982d73889835829f5f7fe7135df9c70a789dee /src/textual.cc
parentd525db35d879d367264ce3093d508f6b3d9b5f89 (diff)
downloadledger-38dd1b86554ded5982857324873027cdb3be33ee.tar.gz
ledger-38dd1b86554ded5982857324873027cdb3be33ee.tar.bz2
ledger-38dd1b86554ded5982857324873027cdb3be33ee.zip
Fixed an issue involving costs and reduced values
Diffstat (limited to 'src/textual.cc')
-rw-r--r--src/textual.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/textual.cc b/src/textual.cc
index 8012dedf..56d88d9f 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -828,9 +828,10 @@ post_t * instance_t::parse_post(char * line,
ptristream stream(next, len - beg);
if (*next != '(') // indicates a value expression
- post->amount.parse(stream);
+ post->amount.parse(stream, amount_t::PARSE_NO_REDUCE);
else
parse_amount_expr(session_scope, stream, post->amount, post.get(),
+ static_cast<uint_least8_t>(expr_t::PARSE_NO_REDUCE) |
static_cast<uint_least8_t>(expr_t::PARSE_NO_ASSIGN));
if (! post->amount.is_null() && honor_strict && strict &&