summaryrefslogtreecommitdiff
path: root/src/xact.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-28 04:54:54 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-28 04:54:54 -0400
commit38122c22241cb8fe64f0d17cd3b084418f49edaa (patch)
tree9383f2082602f2d71dde5328fa8bcf3f6609a5b7 /src/xact.cc
parentfb129fa7a1b293d3a04513aee3ca4a489f094754 (diff)
downloadfork-ledger-38122c22241cb8fe64f0d17cd3b084418f49edaa.tar.gz
fork-ledger-38122c22241cb8fe64f0d17cd3b084418f49edaa.tar.bz2
fork-ledger-38122c22241cb8fe64f0d17cd3b084418f49edaa.zip
Corrected warnings g++-4.3.3 was complaining about
Diffstat (limited to 'src/xact.cc')
-rw-r--r--src/xact.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xact.cc b/src/xact.cc
index 0db98c9f..0e5914d1 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -179,11 +179,12 @@ bool xact_base_t::finalize()
post_t * top_post = NULL;
foreach (post_t * post, posts) {
- if (! post->amount.is_null())
+ if (! post->amount.is_null()) {
if (post->amount.is_annotated())
top_post = post;
else if (! top_post)
top_post = post;
+ }
if (post->cost && ! post->has_flags(POST_COST_CALCULATED)) {
saw_cost = true;