mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-27 21:00:01 +01:00
Fix carry in fallback_format
This commit is contained in:
@@ -2545,7 +2545,7 @@ void fallback_format(Double d, int num_digits, bool binary32, buffer<char>& buf,
|
||||
++buf[i - 1];
|
||||
}
|
||||
if (buf[0] == overflow) {
|
||||
buf[0] = '0';
|
||||
buf[0] = '1';
|
||||
++exp10;
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user