Do not cast dval.
Make global _usage_page unsigned. Reviewed by: imp (mentor)
This commit is contained in:
parent
73de8e89a4
commit
6b8ec0360c
@ -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