summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-06-05 03:01:07 -0400
committerjohnw <johnw@newartisans.com>2004-06-05 03:01:07 -0400
commitb0a62c40b5c2212dc982f75ac2fdeafcab1be54b (patch)
tree1c130374844e9771190605537b285f32bad08e92
parent9ca1d24d30a485300b9486b18c068660da630cc1 (diff)
downloadledger-b0a62c40b5c2212dc982f75ac2fdeafcab1be54b.tar.gz
ledger-b0a62c40b5c2212dc982f75ac2fdeafcab1be54b.tar.bz2
ledger-b0a62c40b5c2212dc982f75ac2fdeafcab1be54b.zip
changes
-rw-r--r--Makefile8
-rw-r--r--reports.cc3
2 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1f12156c..672961ff 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,10 @@
CODE = amount.cc ledger.cc parse.cc reports.cc
OBJS = $(patsubst %.cc,%.o,$(CODE))
-CXX = cc
-#CXX = g++
+#CXX = cc
+CXX = g++
CFLAGS = #-Wall -ansi -pedantic
-#DFLAGS = -O3 -fomit-frame-pointer
-DFLAGS = -g -DDEBUG=1
+DFLAGS = -O3 -fomit-frame-pointer
+#DFLAGS = -g -DDEBUG=1
INCS = -I/sw/include -I/usr/include/gcc/darwin/3.3/c++ -I/usr/include/gcc/darwin/3.3/c++/ppc-darwin
LIBS = -L/sw/lib -lgmpxx -lgmp -lpcre
diff --git a/reports.cc b/reports.cc
index d4289a3e..899a3082 100644
--- a/reports.cc
+++ b/reports.cc
@@ -190,7 +190,8 @@ static void display_total(std::ostream& out, totals& balance,
out << " " << acct->as_str() << std::endl;
} else {
- for (int i = 0; i < level + 1; i++)
+ out << " ";
+ for (int i = 0; i < level; i++)
out << " ";
assert(acct->parent);