diff options
Diffstat (limited to 'src/account.cc')
-rw-r--r-- | src/account.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/account.cc b/src/account.cc index 5f9f7f51..7ce62fd1 100644 --- a/src/account.cc +++ b/src/account.cc @@ -306,7 +306,7 @@ namespace { } value_t get_addr(account_t& account) { - return long(&account); + return long(reinterpret_cast<intptr_t>(&account)); } value_t get_depth_parent(account_t& account) @@ -770,7 +770,7 @@ void put_account(property_tree::ptree& st, const account_t& acct, std::ostringstream buf; buf.width(sizeof(unsigned long) * 2); buf.fill('0'); - buf << std::hex << reinterpret_cast<unsigned long>(&acct); + buf << std::hex << reinterpret_cast<intptr_t>(&acct); st.put("<xmlattr>.id", buf.str()); |