]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fit max exponent.
authorToni Wilen <twilen@winuae.net>
Sat, 2 May 2020 17:04:41 +0000 (20:04 +0300)
committerToni Wilen <twilen@winuae.net>
Sat, 2 May 2020 17:04:41 +0000 (20:04 +0300)
fpp_softfloat.cpp

index e11a772ef12843d590ede48d5d02c0cac083e94a..aa059bfbc3a27b189d11531ebb31b59a8981b3d0 100644 (file)
@@ -127,7 +127,7 @@ static const TCHAR *fp_printx80(floatx80 *fx, int mode)
                int8_t save_exception_flags = fs.float_exception_flags;
                fs.float_exception_flags = 0;
                floatx80 x = floatx80_to_floatdecimal(*fx, &len, &fs);
-               _stprintf(fsout, _T("%c%01lld.%016llde%c%04d%s%s"), n ? '-' : '+',
+               _stprintf(fsout, _T("%c%01lld.%016llde%c%05u%s%s"), n ? '-' : '+',
                                x.low / LIT64(10000000000000000), x.low % LIT64(10000000000000000),
                                (x.high & 0x4000) ? '-' : '+', x.high & 0x3FFF, d ? _T("D") : u ? _T("U") : _T(""),
                                (fs.float_exception_flags & float_flag_inexact) ? _T("~") : _T(""));