From c35746088e7b026ad1a01bf7cf20eeb11f46729e Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Mon, 22 May 2023 02:28:46 +0700 Subject: [PATCH] fix: get rid UB from integer overflow in transactionview --- src/qt/transactionview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp index 1c90414968bb6..00a86857c76ec 100644 --- a/src/qt/transactionview.cpp +++ b/src/qt/transactionview.cpp @@ -333,7 +333,7 @@ void TransactionView::chooseType(int idx) if(!transactionProxyModel) return; transactionProxyModel->setTypeFilter( - typeWidget->itemData(idx).toInt()); + typeWidget->itemData(idx).toUInt()); // Persist settings QSettings settings; settings.setValue("transactionType", idx);