diff options
author | John Wiegley <johnw@newartisans.com> | 2012-02-17 15:17:52 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-17 15:17:52 -0600 |
commit | c3a9a7d2c584a7651426b3516f4e9991c8063e02 (patch) | |
tree | 6a7748588d90d3d9e0032903548b3411d7277dd6 /src/post.cc | |
parent | c6b51a2635bdf7da803dd2fc8251d6c290f134a4 (diff) | |
download | fork-ledger-c3a9a7d2c584a7651426b3516f4e9991c8063e02.tar.gz fork-ledger-c3a9a7d2c584a7651426b3516f4e9991c8063e02.tar.bz2 fork-ledger-c3a9a7d2c584a7651426b3516f4e9991c8063e02.zip |
Fixed many Clang type conversion warnings with static_cast
Diffstat (limited to 'src/post.cc')
-rw-r--r-- | src/post.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/post.cc b/src/post.cc index ed5cd911..b40e31f0 100644 --- a/src/post.cc +++ b/src/post.cc @@ -270,9 +270,9 @@ namespace { if (args.has(0)) { if (args[0].is_long()) { if (args.get<long>(0) > 2) - name = format_t::truncate(account.fullname(), - args.get<long>(0) - 2, - 2 /* account_abbrev_length */); + name = format_t::truncate + (account.fullname(), static_cast<std::size_t>(args.get<long>(0) - 2), + /* account_abbrev_length= */ 2); else name = account.fullname(); } else { |