VirtualBox

Changeset 39037 in vbox for trunk/include


Ignore:
Timestamp:
Oct 19, 2011 2:34:56 PM (13 years ago)
Author:
vboxsync
Message:

iprt/asm.h: -W4 fixes (MSC).

File:
1 edited

Legend:

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

    r37209 r39037  
    761761
    762762# elif RT_INLINE_ASM_USES_INTRIN
    763     return _InterlockedCompareExchange((long *)pu32, u32New, u32Old) == u32Old;
     763    return (uint32_t)_InterlockedCompareExchange((long *)pu32, u32New, u32Old) == u32Old;
    764764
    765765# else
     
    822822{
    823823# if RT_INLINE_ASM_USES_INTRIN
    824    return _InterlockedCompareExchange64((__int64 *)pu64, u64New, u64Old) == u64Old;
     824   return (uint64_t)_InterlockedCompareExchange64((__int64 *)pu64, u64New, u64Old) == u64Old;
    825825
    826826# elif defined(RT_ARCH_AMD64)
     
    41284128            /* whole dword. */
    41294129            if (iBitStart != iEnd)
    4130                 ASMMemFill32(pu32, (iEnd - iBitStart) >> 3, ~0);
     4130                ASMMemFill32(pu32, (iEnd - iBitStart) >> 3, ~UINT32_C(0));
    41314131
    41324132            /* bits in last dword. */
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