VirtualBox

儲存庫 vbox 的更動 62631


忽略:
時間撮記:
2016-7-28 下午03:45:56 (8 年 以前)
作者:
vboxsync
訊息:

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.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • 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;
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette