diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-24 13:19:00 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-24 13:29:08 -0400 |
commit | 38dd1b86554ded5982857324873027cdb3be33ee (patch) | |
tree | a2982d73889835829f5f7fe7135df9c70a789dee /src/textual.cc | |
parent | d525db35d879d367264ce3093d508f6b3d9b5f89 (diff) | |
download | ledger-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.cc | 3 |
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 && |