Commit 08a65c22 authored by Victor Zverovich's avatar Victor Zverovich

Workaround broken constexpr in MSVC2017

parent 167f8fe3
......@@ -1583,7 +1583,8 @@ FMT_CONSTEXPR unsigned parse_nonnegative_int(
value = max_int + 1;
break;
}
value = value * 10 + unsigned(*begin++ - '0');
value = value * 10 + unsigned(*begin - '0');
++begin;
} while (begin != end && '0' <= *begin && *begin <= '9');
if (value > max_int)
eh.on_error("number is too big");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment