VirtualBox

Changeset 71731 in vbox


Ignore:
Timestamp:
Apr 7, 2018 2:10:34 PM (6 years ago)
Author:
vboxsync
Message:

tstDeviceStructSize,tstHelp.h: Fixed cast in CHECK_SIZE that can cause troublesome compliation warnings/errors when things go wrong.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/testcase/tstDeviceStructSize.cpp

    r71247 r71731  
    151151        { \
    152152            printf("tstDeviceStructSize: Error! sizeof(%s): %#x (%d)  Size wrong by %d (should be %d -- but is %d)\n", \
    153                    #type, (int)sizeof(type), (int)sizeof(type), (int)(sizeof(type) - size), (int)size, (int)sizeof(type)); \
     153                   #type, (int)sizeof(type), (int)sizeof(type), (int)sizeof(type) - (int)size, (int)size, (int)sizeof(type)); \
    154154            rc++; \
    155155        } \
  • trunk/src/VBox/VMM/testcase/tstHelp.h

    r69474 r71731  
    5555        { \
    5656            printf("error! sizeof(%s): %#x (%d)  Off by %d!! (expected %#x)\n", \
    57                    #type, (int)sizeof(type), (int)sizeof(type), (int)(sizeof(type) - size), (int)size); \
     57                   #type, (int)sizeof(type), (int)sizeof(type), (int)sizeof(type) - (int)size, (int)size); \
    5858            rc++; \
    5959        } \
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