VirtualBox

Changeset 84992 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Jun 29, 2020 1:28:48 PM (5 years ago)
Author:
vboxsync
Message:

IPRT: fix int/uint issues in asm-fake.cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/asm/asm-fake.cpp

    r82968 r84992  
    464464RTDECL(unsigned) ASMBitLastSetU32(uint32_t u32)
    465465{
    466     int32_t iBit = 32;
     466    uint32_t iBit = 32;
    467467    while (iBit-- > 0)
    468468        if (u32 & RT_BIT_32(iBit))
     
    482482RTDECL(unsigned) ASMBitLastSetU64(uint64_t u64)
    483483{
    484     int32_t iBit = 64;
     484    uint32_t iBit = 64;
    485485    while (iBit-- > 0)
    486486        if (u64 & RT_BIT_64(iBit))
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