Fix carry in fallback_format
This commit is contained in:
1 parent
34179b3354
commit
c156093ffd
2 files changed
+2
-1
No files matched your search
@@ -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