Do not cast dval.

Make global _usage_page unsigned.

Reviewed by:	imp (mentor)
This commit is contained in:
Maksim Yevmenkin 2004-02-11 21:09:13 +00:00
parent 16710e88da
commit e898d5ad97
2 changed files with 2 additions and 3 deletions

View File

@ -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++;

View File

@ -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;