From 3e0d8f7aefe115f7bc318a70f0b03b86342c5142 Mon Sep 17 00:00:00 2001 From: Daniel Coonce Date: Fri, 13 Nov 2020 16:38:31 -0600 Subject: Fix build for x86_64-w64-mingw32 Fixes #1905 --- src/account.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/account.cc') 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(&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(&acct); + buf << std::hex << reinterpret_cast(&acct); st.put(".id", buf.str()); -- cgit v1.2.3