Fix -nan issue with f32

This commit is contained in:
Zhang Yang 2023-11-30 13:16:10 +08:00 committed by Xiang Xiao
parent 9c793067cc
commit 4f9d014994

View File

@ -616,7 +616,7 @@ flt_oper:
exp = _dtoa.exp; exp = _dtoa.exp;
sign = 0; sign = 0;
if ((_dtoa.flags & DTOA_MINUS) && !(_dtoa.flags & DTOA_NAN)) if (_dtoa.flags & DTOA_MINUS)
{ {
sign = '-'; sign = '-';
} }