From f1f8723bd31de6212e0e6611e0f753e0c36aabdc Mon Sep 17 00:00:00 2001 From: Jaroslav Rohel Date: Wed, 4 Dec 2024 09:21:26 +0100 Subject: [PATCH] Fix libdnf5 actions plugin sign conversion compilation err MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix compilation error: error: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Werror=sign-conversion] --- libdnf5-plugins/actions/actions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdnf5-plugins/actions/actions.cpp b/libdnf5-plugins/actions/actions.cpp index 2821f879e..39b708f76 100644 --- a/libdnf5-plugins/actions/actions.cpp +++ b/libdnf5-plugins/actions/actions.cpp @@ -1303,7 +1303,7 @@ void Actions::process_json_command(const CommandToRun & command, struct json_obj } for (std::size_t idx = 0; idx < sizeof(attrs_list) / sizeof(attrs_list[0]); ++idx) { if (attrs_list[idx].first == requested_attr) { - requested_attrs |= 1 << idx; + requested_attrs |= 1U << idx; } } }