• pkasting's avatar
    Fix type truncation warnings in HID code. · 4c3b672c
    pkasting authored
    GetShortData() and IOHIDElementGetUsage() both return uint32s, so raise the size
    of various containing types to uint32.
    
    I tried to look in the USB HID spec to see if any of the affected fields here
    were limited to e.g. <2^16, meaning that it'd be safe to just cast down to the
    existing uint16s instead, but I couldn't find any limits.
    
    BUG=81439
    TEST=none
    
    Review URL: https://codereview.chromium.org/656583003
    
    Cr-Commit-Position: refs/heads/master@{#300201}
    4c3b672c
hid_connection_unittest.cc 5.13 KB