mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-15 08:01:30 +08:00
Backported clang warning fix from fmt
This commit is contained in:
parent
545e7d2de8
commit
2ddd6895e1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user