1
0
Fork 0
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:
Bela Schaum 2022-04-17 21:40:54 +02:00 committed by GitHub
parent 88e239645d
commit ed09da9f36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -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;
}