Changeset 94257 in vbox for trunk/src/VBox/Runtime/common/string
- Timestamp:
- Mar 15, 2022 11:01:14 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/strformatnum.cpp
r94255 r94257 299 299 ? rtStrFormatR80CopyOutStr(pszBuf, cbBuf, RT_STR_TUPLE("+PseudoNan")) 300 300 : rtStrFormatR80CopyOutStr(pszBuf, cbBuf, RT_STR_TUPLE("-PseudoNan")); 301 pszTmp = (char *)memcpy(pszTmp, RT_STR_TUPLE("PseudoNan[")) + 10;301 pszTmp = (char *)memcpy(pszTmp, "PseudoNan[", 10) + 10; 302 302 } 303 303 else if (!(uFraction & RT_BIT_64(62))) … … 309 309 if (!(fFlags & RTSTR_F_SPECIAL)) 310 310 return rtStrFormatR80CopyOutStr(pszBuf, cbBuf, RT_STR_TUPLE("Nan")); 311 pszTmp = (char *)memcpy(pszTmp, RT_STR_TUPLE("Nan[")) + 4;311 pszTmp = (char *)memcpy(pszTmp, "Nan[", 4) + 4; 312 312 } 313 313 else … … 319 319 if (!(fFlags & RTSTR_F_SPECIAL)) 320 320 return rtStrFormatR80CopyOutStr(pszBuf, cbBuf, RT_STR_TUPLE("QNan")); 321 pszTmp = (char *)memcpy(pszTmp, RT_STR_TUPLE("QNan[")) + 4;321 pszTmp = (char *)memcpy(pszTmp, "QNan[", 5) + 5; 322 322 } 323 323 pszTmp += RTStrFormatNumber(pszTmp, uFraction, 16, 2 + 16, 0, … … 341 341 { 342 342 if (fInteger) 343 pszTmp = (char *)memcpy(pszTmp, RT_STR_TUPLE("[PDn]")) + 5;344 else 345 pszTmp = (char *)memcpy(pszTmp, RT_STR_TUPLE("[Den]")) + 5;343 pszTmp = (char *)memcpy(pszTmp, "[PDn]", 5) + 5; 344 else 345 pszTmp = (char *)memcpy(pszTmp, "[Den]", 5) + 5; 346 346 } 347 347 return rtStrFormatR80CopyOutStr(pszBuf, cbBuf, szTmp, pszTmp - &szTmp[0]);
Note:
See TracChangeset
for help on using the changeset viewer.