VirtualBox

Changeset 94283 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Mar 17, 2022 9:13:02 AM (3 years ago)
Author:
vboxsync
Message:

IPRT/RTStrFormatR80[u2]: Nan -> SNan (signalled). bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/strformatnum.cpp

    r94261 r94283  
    308308                     : rtStrFormatR80CopyOutStr(pszBuf, cbBuf, RT_STR_TUPLE("-Inf"));
    309309            if (!(fFlags & RTSTR_F_SPECIAL))
    310                 return rtStrFormatR80CopyOutStr(pszBuf, cbBuf, RT_STR_TUPLE("Nan"));
    311             pszTmp = (char *)memcpy(pszTmp, "Nan[", 4) + 4;
     310                return rtStrFormatR80CopyOutStr(pszBuf, cbBuf, RT_STR_TUPLE("SNan"));
     311            pszTmp = (char *)memcpy(pszTmp, "SNan[", 5) + 5;
    312312        }
    313313        else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette