mirror of
https://github.com/hyprwm/hyprlang.git
synced 2025-05-12 21:30:37 +01:00
style: ignore std::out_of_range
This commit is contained in:
parent
0be046c849
commit
0c18c3427a
1 changed files with 1 additions and 2 deletions
|
@ -168,8 +168,7 @@ static std::expected<int64_t, std::string> configStringToInt(const std::string&
|
|||
auto result = stoll(value, &position, 16);
|
||||
if (position == value.size())
|
||||
return result;
|
||||
} catch (const std::out_of_range&) { return std::unexpected("hex " + value + " is too big"); } catch (const std::exception&) {
|
||||
}
|
||||
} catch (const std::exception&) {}
|
||||
return std::unexpected("invalid hex " + value);
|
||||
};
|
||||
if (VALUE.starts_with("0x")) {
|
||||
|
|
Loading…
Reference in a new issue