Backported clang warning fix from fmt

This commit is contained in:
gabime 2019-09-17 00:15:35 +03:00
parent 545e7d2de8
commit 2ddd6895e1
1 changed files with 1 additions and 1 deletions

View File

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