diff options
| author | hathach <[email protected]> | 2022-12-12 11:54:33 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-12-12 11:54:33 +0700 |
| commit | 04a5c03ea8ea70510c332f0fafb44daf0ec7c7fb (patch) | |
| tree | ec4f0b64733c7a40fa3a43b9d371c4bb274280a7 /src/common/tusb_fifo.h | |
| parent | ce064de6fd4416bb5368a2aaff4283f8e4b9fc36 (diff) | |
fix int conversion warnings
Diffstat (limited to 'src/common/tusb_fifo.h')
| -rw-r--r-- | src/common/tusb_fifo.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/common/tusb_fifo.h b/src/common/tusb_fifo.h index fd149b75c..932214c81 100644 --- a/src/common/tusb_fifo.h +++ b/src/common/tusb_fifo.h @@ -136,13 +136,13 @@ typedef struct void * ptr_wrap ; ///< wrapped part start pointer } tu_fifo_buffer_info_t; -#define TU_FIFO_INIT(_buffer, _depth, _type, _overwritable) \ -{ \ - .buffer = _buffer, \ - .depth = _depth, \ - .item_size = sizeof(_type), \ - .overwritable = _overwritable, \ - .non_used_index_space = UINT16_MAX - (2*(_depth)-1), \ +#define TU_FIFO_INIT(_buffer, _depth, _type, _overwritable) \ +{ \ + .buffer = _buffer, \ + .depth = _depth, \ + .item_size = sizeof(_type), \ + .overwritable = _overwritable, \ + .non_used_index_space = (uint16_t)(UINT16_MAX - (2*(_depth)-1)), \ } #define TU_FIFO_DEF(_name, _depth, _type, _overwritable) \ |
