DescriptionFix type truncation warnings in HID code.
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
Committed: https://crrev.com/4c3b672cc2c1515b7e16cb535e1cd6e69e326607
Cr-Commit-Position: refs/heads/master@{#300201}
Patch Set 1 #Patch Set 2 : Fix compile #Patch Set 3 : Review comments #Patch Set 4 : Fix compile #
Messages
Total messages: 15 (3 generated)
|