VirtualBox

Changeset 2252 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Apr 20, 2007 4:40:47 AM (18 years ago)
Author:
vboxsync
Message:

killed MSC warning.

File:
1 edited

Legend:

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

    r2247 r2252  
    17861786DECLINLINE(bool) ASMAtomicXchgBool(volatile bool *pf, bool f)
    17871787{
     1788#ifdef _MSC_VER
     1789    return !!ASMAtomicXchgU8((volatile uint8_t *)pf, (uint8_t)f);
     1790#else
    17881791    return (bool)ASMAtomicXchgU8((volatile uint8_t *)pf, (uint8_t)f);
     1792#endif
    17891793}
    17901794
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