diff options
author | emax <emax@FreeBSD.org> | 2004-02-11 21:09:13 +0000 |
---|---|---|
committer | emax <emax@FreeBSD.org> | 2004-02-11 21:09:13 +0000 |
commit | 6b8ec0360c5f0a057dbcd87cc7eca7591461bd24 (patch) | |
tree | 73158d0347e9a62dd6473ad10e475e737205ccb8 /lib/libusbhid/parse.c | |
parent | 73de8e89a42d0cb694a79c170fd4490931a9b570 (diff) | |
download | FreeBSD-src-6b8ec0360c5f0a057dbcd87cc7eca7591461bd24.zip FreeBSD-src-6b8ec0360c5f0a057dbcd87cc7eca7591461bd24.tar.gz |
Do not cast dval.
Make global _usage_page unsigned.
Reviewed by: imp (mentor)
Diffstat (limited to 'lib/libusbhid/parse.c')
-rw-r--r-- | lib/libusbhid/parse.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libusbhid/parse.c b/lib/libusbhid/parse.c index 65e13c1..3abc036 100644 --- a/lib/libusbhid/parse.c +++ b/lib/libusbhid/parse.c @@ -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++; |