summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-08-02 18:55:12 +0700
committerhathach <[email protected]>2021-08-02 18:55:12 +0700
commit98e4ba6a12f8ce2b060635dc01f68676b047ce25 (patch)
tree6cb2bda0bf8cbeb766fe83ddf7af79f73c6505e8 /src/common
parent8a48e994b667a087ddc25f4d88da6d26be41b845 (diff)
correct midi available with already stream read
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_fifo.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/common/tusb_fifo.c b/src/common/tusb_fifo.c
index 73217cf75..11b8fc5f3 100644
--- a/src/common/tusb_fifo.c
+++ b/src/common/tusb_fifo.c
@@ -323,8 +323,6 @@ static uint16_t advance_pointer(tu_fifo_t* f, uint16_t p, uint16_t offset)
// We limit the index space of p such that a correct wrap around happens
// Check for a wrap around or if we are in unused index space - This has to be checked first!!
// We are exploiting the wrap around to the correct index
-
- // TODO warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow]
if ((p > (uint16_t)(p + offset)) || ((uint16_t)(p + offset) > f->max_pointer_idx))
{
p = (p + offset) + f->non_used_index_space;