From f70537632290035e56e1e4f7173a44d937b457ff Mon Sep 17 00:00:00 2001 From: Daniel Coonce Date: Mon, 16 Nov 2020 22:08:11 -0600 Subject: Create consistent buffer size. --- src/account.cc | 2 +- src/post.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/account.cc b/src/account.cc index 7ce62fd1..5627b750 100644 --- a/src/account.cc +++ b/src/account.cc @@ -768,7 +768,7 @@ void put_account(property_tree::ptree& st, const account_t& acct, { if (pred(acct)) { std::ostringstream buf; - buf.width(sizeof(unsigned long) * 2); + buf.width(sizeof(intptr_t) * 2); buf.fill('0'); buf << std::hex << reinterpret_cast(&acct); diff --git a/src/post.cc b/src/post.cc index c9f28e99..24816122 100644 --- a/src/post.cc +++ b/src/post.cc @@ -727,7 +727,7 @@ void put_post(property_tree::ptree& st, const post_t& post) property_tree::ptree& t(st.put("account", "")); std::ostringstream buf; - buf.width(sizeof(unsigned long) * 2); + buf.width(sizeof(intptr_t) * 2); buf.fill('0'); buf << std::hex << reinterpret_cast(post.account); -- cgit v1.2.3