Fix carry in fallback_format

This commit is contained in:
Victor Zverovich
2020-09-25 10:12:44 -07:00
parent 34179b3354
commit c156093ffd
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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;