summaryrefslogtreecommitdiff
path: root/src/xact.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-11 19:14:23 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-11 19:14:23 -0400
commit1a030da55d5b16d18261f029cddb543e3ef32424 (patch)
treecfd273fcbaa059fa56311ae22599a205a2b1d4fd /src/xact.cc
parent4eb46bedf0e6e31797826d05992e007f21ee830b (diff)
downloadfork-ledger-1a030da55d5b16d18261f029cddb543e3ef32424.tar.gz
fork-ledger-1a030da55d5b16d18261f029cddb543e3ef32424.tar.bz2
fork-ledger-1a030da55d5b16d18261f029cddb543e3ef32424.zip
Rewrote the "entry" command. It's ALIVE!
Diffstat (limited to 'src/xact.cc')
-rw-r--r--src/xact.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xact.cc b/src/xact.cc
index 5a0a14c8..4e5004a2 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -260,7 +260,7 @@ void xact_t::add_to_value(value_t& value, expr_t& expr)
if (! xdata_ || ! xdata_->has_flags(XACT_EXT_NO_TOTAL)) {
bind_scope_t bound_scope(*expr.get_context(), *this);
if (value.is_null())
- value = amount_t();
+ value = amount_t(0L);
value += expr.calc(bound_scope);
}