mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-10 23:44:29 +00:00
Discontinouos uint8_t test + fix (#182)
This commit is contained in:
parent
88e239645d
commit
ed09da9f36
2 changed files with 5 additions and 3 deletions
|
|
@ -769,7 +769,7 @@ constexpr auto calculate_cases(std::size_t Page) noexcept {
|
|||
}
|
||||
|
||||
auto it = result.begin();
|
||||
for (auto last_value = (std::numeric_limits<switch_t>::min)(); fill != result.end(); *fill++ = last_value) {
|
||||
for (auto last_value = (std::numeric_limits<switch_t>::min)(); fill != result.end(); *fill++ = last_value++) {
|
||||
while (last_value == *it) {
|
||||
++last_value, ++it;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue