1
0
Fork 0
forked from lthn/blockchain

fixed compilation for macOS

This commit is contained in:
sowle 2019-10-29 02:12:59 +03:00
parent 9567cc3ab2
commit a6efee0c24
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -2182,7 +2182,7 @@ void wallet2::check_for_free_space_and_throw_if_it_lacks(const std::wstring& wal
// twice the original wallet file size or MINIMUM_REQUIRED_WALLET_FREE_SPACE_BYTES, which one is bigger
min_free_size = MINIMUM_REQUIRED_WALLET_FREE_SPACE_BYTES;
if (fs::is_regular_file(wallet_file_path))
min_free_size = std::max(min_free_size, 2 * fs::file_size(wallet_file_path));
min_free_size = std::max(min_free_size, 2 * static_cast<uint64_t>(fs::file_size(wallet_file_path)));
}
else
{