summaryrefslogtreecommitdiff
path: root/src/account.cc
diff options
context:
space:
mode:
authorDaniel Coonce <danielcoonce@gmail.com>2020-11-13 16:38:31 -0600
committerMartin Michlmayr <tbm@cyrius.com>2021-02-02 18:06:04 +0800
commit3e0d8f7aefe115f7bc318a70f0b03b86342c5142 (patch)
treec1656de85dd34ae071abfd4ff63f14d69a76e9ad /src/account.cc
parent5560b0c40f3986704df25095fcc485bcc1de9e5b (diff)
downloadfork-ledger-3e0d8f7aefe115f7bc318a70f0b03b86342c5142.tar.gz
fork-ledger-3e0d8f7aefe115f7bc318a70f0b03b86342c5142.tar.bz2
fork-ledger-3e0d8f7aefe115f7bc318a70f0b03b86342c5142.zip
Fix build for x86_64-w64-mingw32
Fixes #1905
Diffstat (limited to 'src/account.cc')
-rw-r--r--src/account.cc4
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());