VirtualBox

Changeset 62631 in vbox for trunk/src


Ignore:
Timestamp:
Jul 28, 2016 3:45:56 PM (8 years ago)
Author:
vboxsync
Message:

ich9pciConfigWriteDev: Put the '~' operator outside the UINT32_C() macro invocation, MSC warns because its macro doesn't just append 'U' but add a uint32_t zero value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevPciIch9.cpp

    r62630 r62631  
    21782178            case VBOX_PCI_COMMAND+1: /* Command register, bits 8-15. */
    21792179                /* don't change reserved bits (11-15) */
    2180                 u8Val &= UINT32_C(~0xf8);
     2180                u8Val &= ~UINT32_C(0xf8);
    21812181                fUpdateMappings = true;
    21822182                goto default_case;
    21832183            case VBOX_PCI_STATUS:  /* Status register, bits 0-7. */
    21842184                /* don't change read-only bits => actually all lower bits are read-only */
    2185                 u8Val &= UINT32_C(~0xff);
     2185                u8Val &= ~UINT32_C(0xff);
    21862186                /* status register, low part: clear bits by writing a '1' to the corresponding bit */
    21872187                aDev->config[addr] &= ~u8Val;
     
    21892189            case VBOX_PCI_STATUS+1:  /* Status register, bits 8-15. */
    21902190                /* don't change read-only bits */
    2191                 u8Val &= UINT32_C(~0x06);
     2191                u8Val &= ~UINT32_C(0x06);
    21922192                /* status register, high part: clear bits by writing a '1' to the corresponding bit */
    21932193                aDev->config[addr] &= ~u8Val;
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