VirtualBox

Changeset 57183 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Aug 5, 2015 8:04:27 AM (9 years ago)
Author:
vboxsync
Message:

Main: use explicit types here to prevent compiler warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/USBIdDatabase.h

    r57034 r57183  
    1111*/
    1212
    13 #pragma once 
     13#pragma once
    1414
    1515#include <vector>
     
    2020* Macros to make key of alias table
    2121*/
    22 #define USBKEY(vendorId, productId) (((vendorId) << 16) | (productId))
     22#define USBKEY(vendorId, productId) (((uint32_t)(vendorId) << 16) | (productId))
    2323
    2424/**
     
    2828{
    2929public:
    30     size_t key;
     30    uint32_t key;
    3131    const char* product;
    3232};
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