From 403bba3058fa6079e68d4c8ec394e81320c58100 Mon Sep 17 00:00:00 2001 From: Jaroslav Rohel Date: Tue, 17 Sep 2024 10:36:37 +0200 Subject: [PATCH] Fix: libdnf5-cli: TransactionSummary counters data type Fixes "error: implicit conversion changes signedness: 'const int' to 'unsigned long' [-Werror,-Wsign-conversion]" The bug was caused by commit "I18N: Mark messages in "dnf install" output for a translation" --- libdnf5-cli/output/transaction_table.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libdnf5-cli/output/transaction_table.cpp b/libdnf5-cli/output/transaction_table.cpp index 810fb6486..6d1e9b1d1 100644 --- a/libdnf5-cli/output/transaction_table.cpp +++ b/libdnf5-cli/output/transaction_table.cpp @@ -186,14 +186,14 @@ class TransactionSummary { } private: - int installs = 0; - int reinstalls = 0; - int upgrades = 0; - int downgrades = 0; - int removes = 0; - int replaced = 0; - int reason_changes = 0; - int skips = 0; + unsigned int installs = 0; + unsigned int reinstalls = 0; + unsigned int upgrades = 0; + unsigned int downgrades = 0; + unsigned int removes = 0; + unsigned int replaced = 0; + unsigned int reason_changes = 0; + unsigned int skips = 0; };