VirtualBox

Ignore:
Timestamp:
Aug 13, 2022 5:31:12 PM (2 years ago)
Author:
vboxsync
Message:

IPRT/strtofloat.cpp: Fixes. bugref:10261

File:
1 edited

Legend:

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

    r96191 r96194  
    5757*   Structures and Typedefs                                                                                                      *
    5858*********************************************************************************************************************************/
    59 typedef struct FLOATUNION
     59typedef union FLOATUNION
    6060{
    6161#ifdef RT_COMPILER_WITH_128BIT_LONG_DOUBLE
     
    101101
    102102/** Pair of default float quiet NaN values (indexed by fPositive). */
    103 static RTFLOAT32U const     g_ar32QNan[2]   = { RTFLOAT32U_INIT_QNAN(0), RTFLOAT32U_INIT_QNAN(1) };
     103static RTFLOAT32U const     g_ar32QNan[2]   = { RTFLOAT32U_INIT_QNAN(1), RTFLOAT32U_INIT_QNAN(0) };
    104104
    105105/** Pair of default double quiet NaN values (indexed by fPositive). */
    106 static RTFLOAT64U const     g_ardQNan[2]    = { RTFLOAT64U_INIT_QNAN(0), RTFLOAT64U_INIT_QNAN(1) };
     106static RTFLOAT64U const     g_ardQNan[2]    = { RTFLOAT64U_INIT_QNAN(1), RTFLOAT64U_INIT_QNAN(0) };
    107107
    108108/** Pair of default double quiet NaN values (indexed by fPositive). */
    109109#if defined(RT_COMPILER_WITH_128BIT_LONG_DOUBLE)
    110 static RTFLOAT128U const    g_alrdQNan[2]   = { RTFLOAT128U_INIT_QNAN(0), RTFLOAT128U_INIT_QNAN(1) };
     110static RTFLOAT128U const    g_alrdQNan[2]   = { RTFLOAT128U_INIT_QNAN(1), RTFLOAT128U_INIT_QNAN(0) };
    111111#elif defined(RT_COMPILER_WITH_80BIT_LONG_DOUBLE)
    112 static RTFLOAT80U2 const    g_alrdQNan[2]   = { RTFLOAT80U_INIT_QNAN(0), RTFLOAT80U_INIT_QNAN(1) };
    113 #else
    114 static RTFLOAT64U const     g_alrdQNan[2]   = { RTFLOAT64U_INIT_QNAN(0), RTFLOAT64U_INIT_QNAN(1) };
     112static RTFLOAT80U2 const    g_alrdQNan[2]   = { RTFLOAT80U_INIT_QNAN(1), RTFLOAT80U_INIT_QNAN(0) };
     113#else
     114static RTFLOAT64U const     g_alrdQNan[2]   = { RTFLOAT64U_INIT_QNAN(1), RTFLOAT64U_INIT_QNAN(0) };
    115115#endif
    116116
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