diff options
| author | Ned Konz <[email protected]> | 2021-06-18 14:50:55 -0700 |
|---|---|---|
| committer | Ned Konz <[email protected]> | 2021-06-18 14:50:55 -0700 |
| commit | 76336a67a05ee4b6676a438578819a48cb0f0420 (patch) | |
| tree | 07593e6fbbfe49d82ad0be03056f0db20efa1f9a /src | |
| parent | df0cda2d7ab7a061bcb28213273bcc3a8d8dbaec (diff) | |
Changed order of struct initializer to avoid compiler error
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/tusb_fifo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/tusb_fifo.h b/src/common/tusb_fifo.h index cf299269d..de2ae163d 100644 --- a/src/common/tusb_fifo.h +++ b/src/common/tusb_fifo.h @@ -86,8 +86,8 @@ typedef struct .depth = _depth, \ .item_size = sizeof(_type), \ .overwritable = _overwritable, \ - .max_pointer_idx = 2*(_depth)-1, \ .non_used_index_space = UINT16_MAX - (2*(_depth)-1), \ + .max_pointer_idx = 2*(_depth)-1, \ } #define TU_FIFO_DEF(_name, _depth, _type, _overwritable) \ |
