From ed87543153d09731d0a8ebdc91d61389988d60fd Mon Sep 17 00:00:00 2001 From: Sami Ahmed Date: Sun, 22 Mar 2026 18:05:43 -0700 Subject: [PATCH] Fix Linux Qt build: int64_t/qint64 type mismatch On Linux, int64_t is long but qint64 is long long - different types that can't bind to the same reference. Use int64_t locals to match the GetAllBalances signature. Co-Authored-By: Claude Opus 4.6 --- src/qt/walletmodel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index 883b50d..d575e39 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -93,8 +93,9 @@ void WalletModel::pollBalanceChanged() void WalletModel::checkBalanceChanged() { // Get all balances in a single lock acquisition + single pass - // instead of 4 separate lock+iterate cycles - qint64 newBalance = 0, newStake = 0, newUnconfirmedBalance = 0, newImmatureBalance = 0; + // instead of 4 separate lock+iterate cycles. + // Use int64_t locals to match GetAllBalances signature (qint64 differs on Linux). + int64_t newBalance = 0, newStake = 0, newUnconfirmedBalance = 0, newImmatureBalance = 0; wallet->GetAllBalances(newBalance, newStake, newUnconfirmedBalance, newImmatureBalance); if(cachedBalance != newBalance || cachedStake != newStake || cachedUnconfirmedBalance != newUnconfirmedBalance || cachedImmatureBalance != newImmatureBalance)