VirtualBox

Changeset 62629 in vbox for trunk


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

pci_default_write_config: 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/DevPCI.cpp

    r62628 r62629  
    451451        {
    452452            /* don't change reserved bits (11-15) */
    453             val &= UINT32_C(~0xf8);
     453            val &= ~UINT32_C(0xf8);
    454454            d->config[addr] = val;
    455455        }
     
    457457        {
    458458            /* don't change read-only bits => actually all lower bits are read-only */
    459             val &= UINT32_C(~0xff);
     459            val &= ~UINT32_C(0xff);
    460460            /* status register, low part: clear bits by writing a '1' to the corresponding bit */
    461461            d->config[addr] &= ~val;
     
    464464        {
    465465            /* don't change read-only bits */
    466             val &= UINT32_C(~0x06);
     466            val &= ~UINT32_C(0x06);
    467467            /* status register, high part: clear bits by writing a '1' to the corresponding bit */
    468468            d->config[addr] &= ~val;
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