diff options
| author | Zixun LI <[email protected]> | 2026-01-12 22:07:40 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-12 22:07:40 +0100 |
| commit | a71cb23647d3eafd3f34b3641fd17ea49b131aec (patch) | |
| tree | d3235edd473ff27973ac2b1c87c936deffc218a1 | |
| parent | 80b207852a96a7639c6ec83d0d37322a8d6e53c0 (diff) | |
| parent | d5362220f3bf1d9e05cc66d76708a3cbb41dffdf (diff) | |
Merge pull request #3457 from sparkmicro/fix-cpp-compiler-warning
Fix compiler error with c++ files and -Werror=extra
| -rw-r--r-- | src/common/tusb_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h index d473e53e6..7d26ac74e 100644 --- a/src/common/tusb_types.h +++ b/src/common/tusb_types.h @@ -554,7 +554,7 @@ TU_ATTR_ALWAYS_INLINE static inline uint8_t tu_edpt_number(uint8_t addr) { } TU_ATTR_ALWAYS_INLINE static inline uint8_t tu_edpt_addr(uint8_t num, uint8_t dir) { - return (uint8_t) (num | (dir == TUSB_DIR_IN ? TUSB_DIR_IN_MASK : 0u)); + return (uint8_t) (num | (dir == (uint8_t)TUSB_DIR_IN ? (uint8_t)TUSB_DIR_IN_MASK : 0u)); } TU_ATTR_ALWAYS_INLINE static inline uint16_t tu_edpt_packet_size(tusb_desc_endpoint_t const* desc_ep) { |
