mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
Backported clang warning fix from fmt
This commit is contained in:
@@ -698,7 +698,7 @@ FMT_API bool grisu_format(Double value, buffer<char>& buf, int precision,
|
|||||||
buf.push_back('0');
|
buf.push_back('0');
|
||||||
} else {
|
} else {
|
||||||
exp = -precision;
|
exp = -precision;
|
||||||
buf.resize(precision);
|
buf.resize(to_unsigned(precision));
|
||||||
std::uninitialized_fill_n(buf.data(), precision, '0');
|
std::uninitialized_fill_n(buf.data(), precision, '0');
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user