mirror of
https://github.com/fmtlib/fmt.git
synced 2024-10-02 13:02:03 +00:00
Workaround broken constexpr in MSVC2017
This commit is contained in:
parent
167f8fe325
commit
08a65c2282
@ -1583,7 +1583,8 @@ FMT_CONSTEXPR unsigned parse_nonnegative_int(
|
|||||||
value = max_int + 1;
|
value = max_int + 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
value = value * 10 + unsigned(*begin++ - '0');
|
value = value * 10 + unsigned(*begin - '0');
|
||||||
|
++begin;
|
||||||
} while (begin != end && '0' <= *begin && *begin <= '9');
|
} while (begin != end && '0' <= *begin && *begin <= '9');
|
||||||
if (value > max_int)
|
if (value > max_int)
|
||||||
eh.on_error("number is too big");
|
eh.on_error("number is too big");
|
||||||
|
Loading…
Reference in New Issue
Block a user