VirtualBox

Changeset 74796 in vbox for trunk


Ignore:
Timestamp:
Oct 12, 2018 11:25:41 AM (6 years ago)
Author:
vboxsync
Message:

vm.h: Made the FF_IS_SET macros only take constants with _BIT variants. bugref:9180

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/vm.h

    r74795 r74796  
    730730    { \
    731731        AssertCompile(RT_IS_POWER_OF_TWO(fFlag)); \
     732        AssertCompile((fFlag) == RT_BIT_32(fFlag##_BIT)); \
    732733        return (a_pVM->fGlobalForcedActions & (fFlag)) == (fFlag); \
    733734    }(pVM))
     
    748749    { \
    749750        AssertCompile(RT_IS_POWER_OF_TWO(fFlag)); \
     751        AssertCompile((fFlag) == RT_BIT_32(fFlag##_BIT)); \
    750752        return (a_pVCpu->fLocalForcedActions & (fFlag)) == (fFlag); \
    751753    }(pVCpu))
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