From a6efee0c2490601dc42e0ccd866dae91fad4fc42 Mon Sep 17 00:00:00 2001 From: sowle Date: Tue, 29 Oct 2019 02:12:59 +0300 Subject: [PATCH] fixed compilation for macOS --- src/wallet/wallet2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 5ffc9d8b..87f57e9c 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -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(fs::file_size(wallet_file_path))); } else {