diff options
Diffstat (limited to 'tinyusb/core/std_request.h')
| -rw-r--r-- | tinyusb/core/std_request.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/core/std_request.h b/tinyusb/core/std_request.h index 1b2175501..2b618ce7b 100644 --- a/tinyusb/core/std_request.h +++ b/tinyusb/core/std_request.h @@ -78,7 +78,7 @@ typedef ATTR_PACKED_STRUCT(struct){ static inline uint8_t bm_request_type(uint8_t direction, uint8_t type, uint8_t recipient) ATTR_CONST ATTR_ALWAYS_INLINE; static inline uint8_t bm_request_type(uint8_t direction, uint8_t type, uint8_t recipient) { - return (direction << 7) | (type << 5) | recipient; + return ((uint8_t) (direction << 7)) | ((uint8_t) (type << 5)) | (recipient); } #ifdef __cplusplus |
