VirtualBox

Changeset 31419 in vbox for trunk/include


Ignore:
Timestamp:
Aug 5, 2010 5:39:07 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64484
Message:

iprt/string.h: Fixed RTSTR_GET_BIT_FLAG. Affects RTStrFormatV and all its users.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/string.h

    r31418 r31419  
    14391439 */
    14401440#define RTSTR_GET_BIT_FLAG(type) \
    1441     ( sizeof(type) == 32 ? RTSTR_F_32BIT \
    1442     : sizeof(type) == 64 ? RTSTR_F_64BIT \
    1443     : sizeof(type) == 16 ? RTSTR_F_16BIT \
    1444     : sizeof(type) == 8  ? RTSTR_F_8BIT \
    1445     : sizeof(type) == 128? RTSTR_F_128BIT \
     1441    ( sizeof(type) * 8 == 32 ? RTSTR_F_32BIT \
     1442    : sizeof(type) * 8 == 64 ? RTSTR_F_64BIT \
     1443    : sizeof(type) * 8 == 16 ? RTSTR_F_16BIT \
     1444    : sizeof(type) * 8 == 8   ? RTSTR_F_8BIT \
     1445    : sizeof(type) * 8 == 128 ? RTSTR_F_128BIT \
    14461446    : 0)
    14471447
Note: See TracChangeset for help on using the changeset viewer.

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