mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fixed std::optional bad cast
This commit is contained in:
parent
64c2d4d33b
commit
23f785ef5b
@ -80,5 +80,5 @@ static std::optional<Severity> severityFromString(std::string _severity)
|
|||||||
|
|
||||||
_severity[0] = toupper(_severity[0]);
|
_severity[0] = toupper(_severity[0]);
|
||||||
|
|
||||||
return std::make_optional<Severity>(_severity).has_value() ? std::optional<Severity>(_severity).value() : std::nullopt;
|
return std::make_optional<std::string>(_severity).has_value() ? std::optional<std::string>(_severity).value() : std::nullopt;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user