summaryrefslogtreecommitdiff
path: root/src/post.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/post.cc')
-rw-r--r--src/post.cc6
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 {