Skip to content

Commit

Permalink
Fix libdnf5 actions plugin sign conversion compilation err
Browse files Browse the repository at this point in the history
Fix compilation error:
error: conversion to ‘unsigned int’ from ‘int’ may change the sign
of the result [-Werror=sign-conversion]
  • Loading branch information
jrohel committed Dec 4, 2024
1 parent 2af228e commit f1f7707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libdnf5-plugins/actions/actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit f1f7707

Please sign in to comment.