Commit 2ddd6895 authored by gabime's avatar gabime

Backported clang warning fix from fmt

parent 545e7d2d
......@@ -698,7 +698,7 @@ FMT_API bool grisu_format(Double value, buffer<char>& buf, int precision,
buf.push_back('0');
} else {
exp = -precision;
buf.resize(precision);
buf.resize(to_unsigned(precision));
std::uninitialized_fill_n(buf.data(), precision, '0');
}
return true;
......
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