mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-07 08:31:16 +00:00
Fix a clang-tidy warning
This commit is contained in:
parent
07b4c246ea
commit
5899267c47
@ -81,8 +81,8 @@ char* sprintf_format(Double value, internal::buffer<char>& buf,
|
|||||||
unsigned n = internal::to_unsigned(result);
|
unsigned n = internal::to_unsigned(result);
|
||||||
if (n < buf.capacity()) {
|
if (n < buf.capacity()) {
|
||||||
// Find the decimal point.
|
// Find the decimal point.
|
||||||
auto p = buf.data();
|
auto* p = buf.data();
|
||||||
auto end = p + n;
|
auto* end = p + n;
|
||||||
if (*p == '+' || *p == '-') ++p;
|
if (*p == '+' || *p == '-') ++p;
|
||||||
if (specs.type != 'a' && specs.type != 'A') {
|
if (specs.type != 'a' && specs.type != 'A') {
|
||||||
while (p < end && *p >= '0' && *p <= '9') ++p;
|
while (p < end && *p >= '0' && *p <= '9') ++p;
|
||||||
|
Loading…
Reference in New Issue
Block a user