VirtualBox

Changeset 72060 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 28, 2018 9:10:04 PM (7 years ago)
Author:
vboxsync
Message:

DevVGA_VBVA: pedantic fix (uint32_t(~0)) isn't necessarily the same as UINT32_MAX or ~(uint32_t)0, it just happens to be the same in our current environments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA_VBVA.cpp

    r71656 r72060  
    388388{
    389389    LOGVBVABUFFER(("uScreenId %d, indexRecordFirst = %d, indexRecordFree = %d, off32Data = %d, off32Free = %d\n",
    390                   uScreenId, pVBVAData->indexRecordFirst, pVBVAData->guest.pVBVA->indexRecordFree,
    391                   pVBVAData->off32Data, pVBVAData->guest.pVBVA->off32Free));
     390                   uScreenId, pVBVAData->indexRecordFirst, pVBVAData->guest.pVBVA->indexRecordFree,
     391                   pVBVAData->off32Data, pVBVAData->guest.pVBVA->off32Free));
    392392    struct {
    393393        /* The rectangle that includes all dirty rectangles. */
     
    414414        }
    415415
    416         if (cbCmd == uint32_t(~0))
     416        if (cbCmd == UINT32_MAX)
    417417        {
    418418            /* No more commands yet in the queue. */
     
    444444            /* These are global coords, relative to the primary screen. */
    445445
    446             LOGVBVABUFFER(("cbCmd = %d, x=%d, y=%d, w=%d, h=%d\n",
    447                            cbCmd, pHdr->x, pHdr->y, pHdr->w, pHdr->h));
     446            LOGVBVABUFFER(("cbCmd = %d, x=%d, y=%d, w=%d, h=%d\n", cbCmd, pHdr->x, pHdr->y, pHdr->w, pHdr->h));
    448447            LogRel3(("%s: update command cbCmd = %d, x=%d, y=%d, w=%d, h=%d\n",
    449448                     __FUNCTION__, cbCmd, pHdr->x, pHdr->y, pHdr->w, pHdr->h));
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