mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-21 08:10:43 +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');
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user