diff options
| author | msaitoh <msaitoh@NetBSD.org> | 2020-03-08 14:09:32 +0000 |
|---|---|---|
| committer | msaitoh <msaitoh@NetBSD.org> | 2020-03-08 14:09:32 +0000 |
| commit | c2bdefab570baa7f6103736b1cd7fd389f6bd26d (patch) | |
| tree | 5e21a7d4ab3fcc27623242702900dada06b5cd89 /sys/dev | |
| parent | a94049144cf0a0ed0897b02ab95abeb2b1f21f04 (diff) | |
Use unsigned to avoid undefined behavior. Found by kUBSan.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/hid/hid.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/hid/hid.h b/sys/dev/hid/hid.h index 2e0acdbca9f..bf1eb9da521 100644 --- a/sys/dev/hid/hid.h +++ b/sys/dev/hid/hid.h @@ -1,4 +1,4 @@ -/* $NetBSD: hid.h,v 1.4 2020/03/02 18:15:28 christos Exp $ */ +/* $NetBSD: hid.h,v 1.5 2020/03/08 14:09:32 msaitoh Exp $ */ /* $FreeBSD: src/sys/dev/usb/hid.h,v 1.7 1999/11/17 22:33:40 n_hibma Exp $ */ /* @@ -123,8 +123,8 @@ int hid_is_collection(const void *, int, uint8_t, uint32_t); #define HUP_CAMERA_CONTROL 0x0090 #define HUP_ARCADE 0x0091 #define HUP_VENDOR 0x00ff -#define HUP_FIDO 0xf1d0 -#define HUP_MICROSOFT 0xff00 +#define HUP_FIDO 0xf1d0U +#define HUP_MICROSOFT 0xff00U /* XXX compat */ #define HUP_APPLE 0x00ff #define HUP_WACOM 0xff00 |
