summaryrefslogtreecommitdiff
path: root/src/account.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/account.h')
-rw-r--r--src/account.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/account.h b/src/account.h
index 29b3c682..3bd0b9ca 100644
--- a/src/account.h
+++ b/src/account.h
@@ -78,7 +78,7 @@ class account_t : public scope_t
const string& _name = "",
const optional<string>& _note = none)
: scope_t(), parent(_parent), name(_name), note(_note),
- depth(parent ? parent->depth + 1 : 0),
+ depth(static_cast<unsigned short>(parent ? parent->depth + 1 : 0)),
known(false), data(NULL) {
TRACE_CTOR(account_t, "account_t *, const string&, const string&");
}