mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 09:12:44 +00:00
Do not cast dval.
Make global _usage_page unsigned. Reviewed by: imp (mentor)
This commit is contained in:
parent
16710e88da
commit
e898d5ad97
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125716
@ -213,12 +213,11 @@ hid_get_item_raw(hid_data_t s, hid_item_t *h)
|
||||
dval = 0;
|
||||
break;
|
||||
case 1:
|
||||
dval = (int8_t)*data++;
|
||||
dval = *data++;
|
||||
break;
|
||||
case 2:
|
||||
dval = *data++;
|
||||
dval |= *data++ << 8;
|
||||
dval = (int16_t)dval;
|
||||
break;
|
||||
case 4:
|
||||
dval = *data++;
|
||||
|
@ -45,7 +45,7 @@ typedef enum hid_kind {
|
||||
|
||||
typedef struct hid_item {
|
||||
/* Global */
|
||||
int _usage_page;
|
||||
unsigned int _usage_page;
|
||||
int logical_minimum;
|
||||
int logical_maximum;
|
||||
int physical_minimum;
|
||||
|
Loading…
Reference in New Issue
Block a user