diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-12-27 14:41:46 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-12-27 14:41:46 +0000 |
commit | 19bf9dba894f93e3c4508a453e64bf6ffbb6d273 (patch) | |
tree | e0b5dda23516a163e9a3aa3d29a46609bc2ab5b9 /sys/dev | |
parent | 26f0bffd80ad5d7cbb7773860df40bf81a5e0fe8 (diff) |
Add cast to silence warnings generated by clang.
ok mpi@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/uhcireg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uhcireg.h b/sys/dev/usb/uhcireg.h index 35b24f20375..90499a71a8d 100644 --- a/sys/dev/usb/uhcireg.h +++ b/sys/dev/usb/uhcireg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uhcireg.h,v 1.15 2013/04/15 09:23:02 mglocker Exp $ */ +/* $OpenBSD: uhcireg.h,v 1.16 2016/12/27 14:41:45 kettenis Exp $ */ /* $NetBSD: uhcireg.h,v 1.16 2002/07/11 21:14:29 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/uhcireg.h,v 1.12 1999/11/17 22:33:42 n_hibma Exp $ */ @@ -163,7 +163,7 @@ struct uhci_td { #define UHCI_TD_GET_ENDPT(s) (((s) >> 15) & 0xf) #define UHCI_TD_SET_DT(t) ((t) << 19) #define UHCI_TD_GET_DT(s) (((s) >> 19) & 1) -#define UHCI_TD_SET_MAXLEN(l) (((l)-1) << 21) +#define UHCI_TD_SET_MAXLEN(l) (((uint32_t)(l)-1) << 21) #define UHCI_TD_GET_MAXLEN(s) ((((s) >> 21) + 1) & 0x7ff) #define UHCI_TD_MAXLEN_MASK 0xffe00000 u_int32_t td_buffer; |