-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b734f23
commit 6f2b19d
Showing
4 changed files
with
38 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// SPDX-FileCopyrightText: 2022 Mikael Larsson <[email protected]> | ||
// SPDX-FileCopyrightText: 2024 Robin Lindén <[email protected]> | ||
// SPDX-FileCopyrightText: 2024-2025 Robin Lindén <[email protected]> | ||
// | ||
// SPDX-License-Identifier: BSD-2-Clause | ||
|
||
|
@@ -69,7 +69,7 @@ struct NumberToken { | |
}; | ||
|
||
struct PercentageToken { | ||
std::variant<int, double> data{}; | ||
std::variant<std::int32_t, double> data{}; | ||
[[nodiscard]] bool operator==(PercentageToken const &) const = default; | ||
|
||
[[nodiscard]] constexpr bool is_integer() const { return std::holds_alternative<int>(data); } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters