summaryrefslogtreecommitdiff
path: root/valexpr.cc
diff options
context:
space:
mode:
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;