Commit 37dc495b authored by Victor Zverovich's avatar Victor Zverovich

Simplify MSVC workaround

parent 2ff4996d
......@@ -2975,7 +2975,7 @@ class format_int {
// Formats value in reverse and returns a pointer to the beginning.
char *format_decimal(unsigned long long value) {
char *ptr = buffer_ + static_cast<unsigned>(BUFFER_SIZE) - 1;
char *ptr = buffer_ + (BUFFER_SIZE - 1); // Parens to workaround MSVC bug.
while (value >= 100) {
// Integer division is slow so do it for a group of two digits instead
// of for every digit. The idea comes from the talk by Alexandrescu
......
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