Added cast

This commit is contained in:
Uwe Seimet 2021-12-18 13:37:23 +01:00
parent b8599ba088
commit 8177cd3062

View File

@ -281,7 +281,7 @@ void RasctlDisplay::DisplayOperationInfo(const PbOperationInfo& operation_info)
cout << "Remote operations supported by rascsi and their parameters:" << endl;
for (const auto& operation : operations) {
if (PbOperation_IsValid(operation.first)) {
if (PbOperation_IsValid(static_cast<PbOperation>(operation.first))) {
cout << " " << PbOperation_Name(static_cast<PbOperation>(operation.first));
if (!operation.second.description().empty()) {
cout << " (" << operation.second.description().at("en") << ")";