summaryrefslogtreecommitdiff
path: root/valexpr.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-21 01:43:50 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-21 01:43:50 -0400
commit06ac87ab208210bef6a30cf71e116847080d2383 (patch)
tree4b9a20ad43a8723a3ab5f880f06e63c8611d669a /valexpr.cc
parentec7f071bdd529e372fe9b8d123cebadf74e76e29 (diff)
downloadfork-ledger-06ac87ab208210bef6a30cf71e116847080d2383.tar.gz
fork-ledger-06ac87ab208210bef6a30cf71e116847080d2383.tar.bz2
fork-ledger-06ac87ab208210bef6a30cf71e116847080d2383.zip
support arbitrary precision after the decimal point; increase speed 0-10%
Diffstat (limited to 'valexpr.cc')
-rw-r--r--valexpr.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/valexpr.cc b/valexpr.cc
index fb5e632e..794b5dfd 100644
--- a/valexpr.cc
+++ b/valexpr.cc
@@ -171,7 +171,7 @@ void value_expr_t::compute(value_t& result, const details_t& details,
case DEPTH:
if (details.account)
- result = (unsigned int) (details.account->depth - 1);
+ result = (unsigned int) details.account->depth;
else
result = 0U;
break;