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:
1 parent
64c2d4d33b
commit
23f785ef5b
1 file changed
+1
-1
@@ -80,5 +80,5 @@ static std::optional<Severity> severityFromString(std::string _severity)
|
||||
|
||||
_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;
|
||||
}
|
||||
Reference in new issue
Block a user